self.AMP_CONFIG={"v":"012211060024000","type":"production","allow-doc-opt-in":["amp-next-page"],"allow-url-opt-in":[],"canary":0,"a4aProfilingRate":0.01,"doubleclickSraExp":0.01,"doubleclickSraReportExcludedBlock":0.1,"flexAdSlots":0.05,"flexible-bitrate":0.1,"ios-fixed-no-transfer":0,"story-ad-placements":0.01,"story-disable-animations-first-page":1,"story-load-inactive-outside-viewport":1,"amp-sticky-ad-to-amp-ad-v4":0,"story-video-cache-apply-audio":0,"amp-story-subscriptions":1,"esm":1};/*AMP_CONFIG*/;
(()=>{var t,e=class{constructor(){this.C=new i}abort(){if(!this.C.N&&(this.C.N=!0,this.C.L)){const t={"type":"abort","bubbles":!1,"cancelable":!1,"target":this.C,"currentTarget":this.C};this.C.L(t)}}get signal(){return this.C}},i=class{constructor(){this.N=!1,this.L=null}get aborted(){return this.N}get onabort(){return this.L}set onabort(t){this.L=t}};function s(){return t||(t=Promise.resolve(void 0))}var n=class{constructor(){this.promise=new Promise(((t,e)=>{this.resolve=t,this.reject=e}))}};function r(t){return new Promise((e=>{e(t())}))}function o(t){const e=Object.getOwnPropertyDescriptor(t,"message");if(null!=e&&e.writable)return t;const{message:i,stack:s}=t,n=new Error(i);for(const e in t)n[e]=t[e];return n.stack=s,n}function h(t){let e=null,i="";for(const t of arguments)t instanceof Error&&!e?e=o(t):(i&&(i+=" "),i+=t);return e?i&&(e.message=i+": "+e.message):e=new Error(i),e}function a(t){var e,i;null===(e=(i=self).__AMP_REPORT_ERROR)||void 0===e||e.call(i,t)}function c(t){const e=h.apply(null,arguments);setTimeout((()=>{throw a(e),e}))}function l(t){const e=h.apply(null,arguments);return e.expected=!0,e}var{hasOwnProperty:u,toString:d}=Object.prototype;function p(t){return"[object Object]"===d.call(t)}function m(t){const e=Object.create(null);return t&&Object.assign(e,t),e}function f(t,e){return u.call(t,e)}function g(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function v(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,s)}return i}function _(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?v(Object(i),!0).forEach((function(e){g(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):v(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function A(t){return t?Array.prototype.slice.call(t):[]}var{isArray:y}=Array;function P(t){return y(t)?t:[t]}function b(t,e){const i=[];let s=0;for(let n=0;n<t.length;n++){const r=t[n];e(r,n,t)?i.push(r):(s<n&&(t[s]=r),s++)}return s<t.length&&(t.length=s),i}function I(t,e){const i=t.indexOf(e);return-1!=i&&(t.splice(i,1),!0)}function w(t){return"string"==typeof t}function E(t){return 1==(null==t?void 0:t.nodeType)}function T(t){return"number"==typeof t&&isFinite(t)}var S="​​​",M="​​​​";function R(t){return E(t)?(t=t).tagName.toLowerCase()+(t.id?`#${t.id}`:""):t}function x(t){return t.indexOf(S)>=0}function k(t,e,i="Assertion failed",s){var n,r;if(e)return e;t&&-1==i.indexOf(t)&&(i+=t);let o=3;const h=i.split("%s");let a=h.shift();const c=[a];for(;h.length;){const t=arguments[o++],e=h.shift();a+=R(t)+e,c.push(t,e.trim())}const l=new Error(a);throw l.messageArray=b(c,(t=>""!==t)),null===(n=(r=self).__AMP_REPORT_ERROR)||void 0===n||n.call(r,l),l}function j(t,e,i,s,n){return y(n)?t(i,n.concat([e])):t(i,`${n||s}: %s`,e),e}function V(t,e,i,s,n,r,o,h,a,c,l){return t}function O(t,e){return t}function C(t,e){return t}function N(t,e){return t}function L(t,e,i,s,n,r,o,h,a,c,l){return k(S,t,e,i,s,n,r,o,h,a,c,l)}function D(t){return JSON.parse(t)}function z(t,e){try{return D(t)}catch(t){return null==e||e(t),null}}function U(t){const e=new Uint8Array(t.length);for(let i=0;i<t.length;i++){const s=t.charCodeAt(i);V(s<=255),e[i]=s}return e}function F(t,e){let{crypto:i}=t;const s=new Uint8Array(e);return i.getRandomValues(s),s}function $(t,e,i){let s=0,n=null;function r(r){n=null,s=t.setTimeout(o,i),e.apply(null,r)}function o(){s=0,n&&r(n)}return function(...t){s?n=t:r(t)}}function H(t,e,i){let s=0,n=0,r=null;function o(){s=0;const h=i-(t.Date.now()-n);var a;h>0?s=t.setTimeout(o,h):(a=r,r=null,e.apply(null,a))}return function(...e){n=t.Date.now(),r=e,s||(s=t.setTimeout(o,i))}}var B=["javascript:","data:","vbscript:"],G=/(?:^[#?]?|&)([^=&]+)(?:=([^&]*))?/g;function q(t,e=""){try{return decodeURIComponent(t)}catch(t){return e}}function W(t){const e=m();if(!t)return e;let i;for(;i=G.exec(t);){const t=q(i[1],i[1]),s=i[2]?q(i[2].replace(/\+/g," "),i[2]):"";e[t]=s}return e}function Y(t){const{location:e}=t||self;return W(e.originalHash||e.hash)}var K=t=>self.AMP_CONFIG?self.AMP_CONFIG[t]:null,Q=("string"==typeof K("cdnProxyRegex")?new RegExp(K("cdnProxyRegex")):K("cdnProxyRegex"))||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;function J(t){if(!self.document||!self.document.head)return null;if(self.location&&Q.test(self.location.origin))return null;const e=self.document.head.querySelector(`meta[name="${t}"]`);return e&&e.getAttribute("content")||null}var X=K("thirdPartyUrl")||"https://3p.ampproject.net",Z=K("thirdPartyFrameHost")||"ampproject.net",tt=("string"==typeof K("thirdPartyFrameRegex")?new RegExp(K("thirdPartyFrameRegex")):K("thirdPartyFrameRegex"))||/^d-\d+\.ampproject\.net$/,et=K("cdnUrl")||J("runtime-host")||"https://cdn.ampproject.org",it=/^https?:\/\/localhost(:\d+)?$/,st=K("errorReportingUrl")||"https://us-central1-amp-error-reporting.cloudfunctions.net/r",nt=K("betaErrorReportingUrl")||"https://us-central1-amp-error-reporting.cloudfunctions.net/r-beta",rt=K("localDev")||!1,ot=[/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/,/(^|\.)gmail\.(com|dev)$/],ht=K("geoApiUrl")||J("amp-geo-api"),at="";function ct(t){const e=t||self;return e.__AMP_MODE?e.__AMP_MODE:e.__AMP_MODE=function(t){return{localDev:!1,development:ut(t,Y(t)),esm:!0,test:!1,rtvVersion:lt(t),ssrReady:!1}}(e)}function lt(t){var e;return at||(at=(null===(e=t.AMP_CONFIG)||void 0===e?void 0:e.v)||"012211060024000"),at}function ut(t,e){const i=e||Y(t);return["1","actions","amp","amp4ads","amp4email"].includes(i.development)||!!t.AMP_DEV_MODE}var dt=()=>{},pt=void 0;function mt(t){pt=t}var ft=(t,e)=>e.reduce(((t,e)=>`${t}&s[]=${gt(e)}`),`https://log.amp.dev/?v=012211060024000&id=${encodeURIComponent(t)}`),gt=t=>encodeURIComponent(String(R(t))),vt=t=>parseInt(Y(t).log,10);self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var _t=self.__AMP_LOG,At=null;function yt(t,e){if(!At)throw new Error("failed to call initLogConstructor");return new At(self,t,e)}function Pt(t){return _t.user||(_t.user=bt(S)),function(t,e){return e&&e.ownerDocument.defaultView!=t}(_t.user.win,t)?_t.userForEmbed||(_t.userForEmbed=bt(M)):_t.user}function bt(t){return yt(((t,e)=>e||t>=1?4:2),t)}function It(){return _t.dev||(_t.dev=yt((t=>t>=3?4:t>=2?3:0)))}function wt(t,e,i,s,n,r,o,h,a,c,l){return t}function Et(t,e,i,s,n,r,o,h,a,c,l){return Pt().assert(t,e,i,s,n,r,o,h,a,c,l)}function Tt(t){return(t.ownerDocument||t).defaultView}function St(t,e){return t.replace(/^|,/g,`$&${e} `)}function Mt(t){return CSS.escape(t)}function Rt(t){V(/^[\w-]+$/.test(t))}function xt(t,e){return t.querySelector(St(e,":scope"))}function kt(t,e){return t.closest(e)}function jt(t,e){for(let i=t.lastElementChild;i;i=i.previousElementSibling)if(e(i))return i;return null}function Vt(t,e){return Rt(e),xt(t,`> [${e}]`)}function Ot(t){return!!function(t){let e;return w(t)?e=t:E(t)&&(e=t.tagName),!!e&&e.toLowerCase().startsWith("i-")}(t)||t.nodeType===Node.ELEMENT_NODE&&(O(t),t.hasAttribute("placeholder")||t.hasAttribute("fallback")||t.hasAttribute("overflow"))}var Ct={bubbles:!0,cancelable:!0};function Nt(t,e,i){if(e(t))i();else{const s=new(Tt(t).MutationObserver)((()=>{e(t)&&(s.disconnect(),i())}));s.observe(t,{childList:!0})}}function Lt(t){return new Promise((e=>function(t,e){Nt(t.documentElement,(()=>!!t.body),e)}(t,e)))}function Dt(t){var e;null===(e=t.parentElement)||void 0===e||e.removeChild(t)}function zt(t,e,i){return function(t,e){for(const i in e)t.setAttribute(i,e[i]);return t}(t.createElement(e),i)}function Ut(t){const e=t.isConnected;if(void 0!==e)return e;let i=t;for(;i=Ft(i),i.host;)i=i.host;return i.nodeType===Node.DOCUMENT_NODE}function Ft(t){if(Node.prototype.getRootNode)return t.getRootNode();let e;for(e=t;e.parentNode&&(!(i=e)||"I-AMPHTML-SHADOW-ROOT"!=i.tagName&&(11!=i.nodeType||"[object ShadowRoot]"!==Object.prototype.toString.call(i)));e=e.parentNode);var i;return e}function $t(t,e){let i=t;do{if(i.nextSibling)return!0}while((i=i.parentNode)&&i!=e);return!1}function Ht(t){try{t.focus()}catch(t){}}function Bt(t){return t.parent&&t.parent!=t}function Gt(t,e,i,s){const n=i||{};V(t.ownerDocument);const r=t.ownerDocument.createEvent("Event");r.data=n;const{bubbles:o,cancelable:h}=s||Ct;r.initEvent(e,o,h),t.dispatchEvent(r)}function qt(t,e){return e!==t&&t.contains(e)}function Wt(t){return t.hasAttribute("i-amphtml-ssr")}function Yt(t,e){const i=t.head.querySelector("script[nonce]");if(i){const t=i.nonce||i.getAttribute("nonce");e.setAttribute("nonce",null!=t?t:"")}}function Kt(t,e,i,s){return{left:t,top:e,width:i,height:s,bottom:e+s,right:t+i,x:t,y:e}}function Qt(t){return Kt(Number(t.left),Number(t.top),Number(t.width),Number(t.height))}function Jt(t,e,i){return 0==e&&0==i||0==t.width&&0==t.height?t:Kt(t.left+e,t.top+i,t.width,t.height)}function Xt(t){return!t.IntersectionObserver||!t.IntersectionObserverEntry||!!t.IntersectionObserver._stub||!function(t){try{return new t.IntersectionObserver((()=>{}),{root:t.document}),!0}catch(t){return!1}}(t)||function(t){return/apple/i.test(t.navigator.vendor)}(t)}var Zt=class{constructor(t,e){this.U=t,this.$=_({root:null,rootMargin:"0px 0px 0px 0px"},e),this.F=[],this.B=null,Zt._upgraders.push(this.j.bind(this))}get root(){return this.B?this.B.root:this.$.root||null}get rootMargin(){return this.B?this.B.rootMargin:this.$.rootMargin}get thresholds(){return this.B?this.B.thresholds:[].concat(this.$.threshold||0)}disconnect(){this.B?this.B.disconnect():this.F.length=0}takeRecords(){return this.B?this.B.takeRecords():[]}observe(t){this.B?this.B.observe(t):-1==this.F.indexOf(t)&&this.F.push(t)}unobserve(t){if(this.B)this.B.unobserve(t);else{const e=this.F.indexOf(t);-1!=e&&this.F.splice(e,1)}}j(t){const e=new t(this.U,this.$);this.B=e;for(const t of this.F)e.observe(t);this.F.length=0}};Zt._upgraders=[];var{hasOwnProperty:te}=Object.prototype;function ee(t){return!t.ResizeObserver||!!t.ResizeObserver._stub}var ie,se=class{constructor(t){this.U=t,this.F=[],this.B=null,se._upgraders.push(this.j.bind(this))}disconnect(){this.B?this.B.disconnect():this.F.length=0}observe(t){this.B?this.B.observe(t):-1==this.F.indexOf(t)&&this.F.push(t)}unobserve(t){if(this.B)this.B.unobserve(t);else{const e=this.F.indexOf(t);-1!=e&&this.F.splice(e,1)}}j(t){const e=new t(this.U);this.B=e;for(const t of this.F)e.observe(t);this.F.length=0}};function ne(t,e,i,s){ve(t=de(t),t,e,i),s&&ge(t,e)}function re(t,e,i,s){const n=me(t),r=fe(n);ve(r,n,e,i),s&&ge(r,e)}function oe(t,e){return ge(t=de(t),e)}function he(t,e){return Ie(t=de(t),e)?ge(t,e):null}function ae(t,e){return ge(fe(me(t)),e)}function ce(t,e){const i=fe(me(t));return Ie(i,e)?ge(i,e):null}function le(t,e){return _e(fe(t),e)}function ue(t,e){return Ae(fe(t),e)}function de(t){return t.__AMP_TOP||(t.__AMP_TOP=t)}function pe(t,e){const i=(t.ownerDocument||t).defaultView,s=e||de(i);if(i&&i!=s&&de(i)==s)try{return i.frameElement}catch(t){}return null}function me(t){return t.nodeType?function(t){return oe(t,"ampdoc")}(Tt(t)).getAmpDoc(t):t}function fe(t){const e=me(t);return e.isSingleDoc()?e.win:e}function ge(t,e){wt(Ie(t,e));const i=ye(t)[e];return i.obj||(wt(i.ctor),wt(i.context),i.obj=new i.ctor(i.context),wt(i.obj),i.context=null,i.resolve&&i.resolve(i.obj)),i.obj}function ve(t,e,i,s,n,r){const o=ye(t);let h=o[i];h||(h=o[i]={obj:null,promise:null,resolve:null,reject:null,context:null,ctor:null,sharedInstance:r||!1}),!n&&h.ctor||(h.ctor=s,h.context=e,h.sharedInstance=r||!1,h.resolve&&ge(t,i))}function _e(t,e){const i=Ae(t,e);if(i)return i;const s=ye(t);return s[e]=we(),s[e].promise}function Ae(t,e){const i=ye(t)[e];return i?i.promise?i.promise:(ge(t,e),i.promise=Promise.resolve(i.obj)):null}function ye(t){let e=t.__AMP_SERVICES;return e||(e=t.__AMP_SERVICES={}),e}function Pe(t){return"function"==typeof t.dispose}function be(t,e){if(Pe(e))try{(function(t){return wt(Pe(t)),t})(e).dispose()}catch(e){It().error("SERVICE","failed to dispose service",t,e)}}function Ie(t,e){const i=t.__AMP_SERVICES&&t.__AMP_SERVICES[e];return!(!i||!i.ctor)}function we(){const t=new n,{promise:e,reject:i,resolve:s}=t;return e.catch((()=>{})),{obj:null,promise:e,resolve:s,reject:i,context:null,ctor:null}}se._upgraders=[],self.document&&(Xt(ie=self)&&function(t){if(!t.IntersectionObserver)return t.IntersectionObserver=Zt,void(t.IntersectionObserver._stub=Zt);const e=t.IntersectionObserver;t.IntersectionObserver=function(t,e){return function(i,s){var n;return 9===(null==s||null===(n=s.root)||void 0===n?void 0:n.nodeType)?new e(i,s):new t(i,s)}}(t.IntersectionObserver,Zt),t.IntersectionObserver._stub=Zt,t.IntersectionObserver._native=e}(ie),function(t){t.IntersectionObserverEntry&&!("isIntersecting"in t.IntersectionObserverEntry.prototype)&&Object.defineProperty(t.IntersectionObserverEntry.prototype,"isIntersecting",{enumerable:!0,configurable:!0,get(){return this.intersectionRatio>0}})}(ie),function(t){ee(t)&&function(t){t.ResizeObserver||(t.ResizeObserver=se,t.ResizeObserver._stub=se)}(t)}(self),function(t){t.AbortController||(Object.defineProperty(t,"AbortController",{configurable:!0,enumerable:!1,writable:!0,value:e}),Object.defineProperty(t,"AbortSignal",{configurable:!0,enumerable:!1,writable:!0,value:i}))}(self));var Ee="amp-experiment-toggles",Te="__AMP__EXPERIMENT_TOGGLES";function Se(t,e){return!!Re(t)[e]}function Me(t,e,i,s){const n=Se(t,e),r=null!=i?i:!n;if(r!=n&&(Re(t)[e]=r,!s)){const i=xe(t);i[e]=r,function(t,e){const i=[];for(const t in e)i.push((!1===e[t]?"-":"")+t);try{var s;null===(s=t.localStorage)||void 0===s||s.setItem(Ee,i.join(","))}catch(t){Pt().error("EXPERIMENTS","Failed to save experiments to localStorage.")}}(t,i)}return r}function Re(t){var e,i,s,n,r;if(t[Te])return t[Te];t[Te]=m();const o=t[Te];V(o);const h=_(_({},null!==(e=t.AMP_CONFIG)&&void 0!==e?e:{}),null!==(i=t.AMP_EXP)&&void 0!==i?i:D((null===(s=t.__AMP_EXP)||void 0===s?void 0:s.textContent)||"{}"));for(const t in h){const e=h[t];"number"==typeof e&&e>=0&&e<=1&&(o[t]=Math.random()<e)}const a=null===(n=t.AMP_CONFIG)||void 0===n?void 0:n["allow-doc-opt-in"];if(y(a)&&a.length){const e=t.document.head.querySelector('meta[name="amp-experiments-opt-in"]');if(e){var c;const t=(null===(c=e.getAttribute("content"))||void 0===c?void 0:c.split(","))||[];for(const e of t)a.includes(e)&&(o[e]=!0)}}Object.assign(o,xe(t));const l=null===(r=t.AMP_CONFIG)||void 0===r?void 0:r["allow-url-opt-in"];if(y(l)&&l.length){const e=W(t.location.originalHash||t.location.hash);for(const t of l){const i=e[`e-${t}`];"1"==i&&(o[t]=!0),"0"==i&&(o[t]=!1)}}return o}function xe(t){var e;let i="";try{var s;"localStorage"in t&&(i=null!==(s=t.localStorage.getItem(Ee))&&void 0!==s?s:"")}catch(t){}const n=(null===(e=i)||void 0===e?void 0:e.split(/\s*,\s*/g))||[],r=m();for(const t of n)t&&("-"==t[0]?r[t.substr(1)]=!1:r[t]=!0);return r}var ke=["amp-mustache"];function je(t){if(!t)return null;const e=t.match(/^(.*)\/(.*)-([0-9.]+|latest)(\.max)?\.(?:js|mjs)(?:\?ssr-css=[0|1])?$/i),i=e?e[2]:void 0,s=e?e[3]:void 0;return i&&s?{extensionId:i,extensionVersion:s}:null}function Ve(t,e,i){const s=t.document.createElement("script");s.async=!0,Ce(e)?i="":s.setAttribute(ke.indexOf(e)>=0?"custom-template":"custom-element",e),s.setAttribute("data-script",e),s.setAttribute("i-amphtml-inserted",""),s.setAttribute("type","module"),Yt(t.document,s),s.setAttribute("crossorigin","anonymous");const n=function(t,e,i,s){return`${et}/rtv/${ct().rtvVersion}/v0/${e}${i?"-"+i:""}.mjs`}(t.location,e,i);return s.src=n,s}function Oe(t,e,i,s,n=!0){const r=":not([i-amphtml-loaded-new-version])"+(n?"":":not([i-amphtml-inserted])"),o=t.document.head.querySelectorAll(`script[src*="/${e}-"]${r}`),h=[];for(let t=0;t<o.length;t++){const n=o[t],r=je(n.src);if(!r)continue;const{extensionId:a,extensionVersion:c}=r;a==e&&(Ce(e)||c==i||"latest"==c&&s)&&h.push(n)}return h}function Ce(t){return t.startsWith("_")}function Ne(t,e,i,s){return Le(t,e,i,s).then((t=>function(t,e,i){return Et(t,"Service %s was requested to be provided through %s, but %s is not loaded in the current page. To fix this problem load the JavaScript file for %s in this page.",e,i,i,i)}(t,e,i)))}function Le(t,e,i,s){const n=ue(t,e);if(n)return n;const r=me(t);return r.whenExtensionsKnown().then((()=>{const t=r.getExtensionVersion(i);return t?oe(r.win,"extensions").waitForExtension(i,t):null})).then((i=>i?s?ue(t,e):le(t,e):null))}var De=t=>Le(t,"access","amp-access"),ze=t=>Le(t,"subscriptions","amp-subscriptions"),Ue=t=>ce(t,"action"),Fe=t=>Ne(t,"activity","amp-analytics"),$e=t=>me(t),He=t=>oe(t,"ampdoc"),Be=t=>function(t,e,i){const s=ce(t,e);return s?Promise.resolve(s):Le(t,e,"amp-bind")}(t,"bind"),Ge=t=>le(t,"cid"),qe=t=>ae(t,"documentInfo").get(),We=t=>oe(t,"extensions"),Ye=t=>ae(t,"history"),Ke=t=>ae(t,"mutator"),Qe=t=>oe(t,"performance"),Je=t=>oe(t,"platform"),Xe=t=>oe(t,"preconnect"),Ze=t=>ae(t,"resources"),ti=t=>function(t,e){return ge(t,"timer")}(t),ei=t=>ce(t,"url-replace"),ii=t=>Le(t,"geo","amp-geo",!0),si=t=>ce(t,"url"),ni=t=>ae(t,"viewer"),ri=t=>oe(t,"vsync"),oi=t=>ae(t,"viewport");function hi(t){return function(t,e){const i=e.documentElement;return["⚡4email","amp4email"].some((t=>i.hasAttribute(t)))}(0,t)}var ai,ci="building",li="mounting",ui="loading",di="complete",pi="error";function mi(t){return t.readyState!=ui&&"uninitialized"!=t.readyState}function fi(t){return t.readyState==di}function gi(t,e){vi(t,mi,e)}function vi(t,e,i){let s=e(t);if(s)i(t);else{const n=()=>{e(t)&&(s||(s=!0,i(t)),t.removeEventListener("readystatechange",n))};t.addEventListener("readystatechange",n)}}function _i(t){return new Promise((e=>{gi(t,e)}))}function Ai(t){return new Promise((e=>{vi(t,fi,e)}))}function yi(t,e,i,s){let n=t,r=i,o=t=>{try{return r(t)}catch(t){var e,i;throw null===(e=(i=self).__AMP_REPORT_ERROR)||void 0===e||e.call(i,t),t}};const h=function(){if(void 0!==ai)return ai;ai=!1;try{const t={get capture(){return ai=!0,!1}};self.addEventListener("test-options",null,t),self.removeEventListener("test-options",null,t)}catch(t){}return ai}(),a=!(null==s||!s.capture);return n.addEventListener(e,o,h?s:a),()=>{null==n||n.removeEventListener(e,o,h?s:a),r=null,n=null,o=null}}var Pi="Failed to load:";function bi(t,e,i,s){const n={detail:i};return Object.assign(n,s),new t.CustomEvent(e,n)}function Ii(t,e,i,s){return yi(t,e,i,s)}function wi(t){return t.data}function Ei(t,e,i,s){let n=i;const r=yi(t,e,(t=>{try{n(t)}finally{n=null,r()}}),s);return r}function Ti(t){let e,i;if(function(t){return!!(t.complete||"complete"==t.readyState||Si(t)&&t.readyState>0||t.document&&"complete"==t.document.readyState)}(t))return Promise.resolve(t);const s=Si(t);return s&&t.__AMP_MEDIA_LOAD_FAILURE_SRC===t.currentSrc?Promise.reject(t):new Promise(((n,r)=>{if(e=s?Ei(t,"loadedmetadata",n,{capture:!0}):Ei(t,"load",n),!t.tagName)return;let o=t;if(s&&!t.hasAttribute("src")&&(o=jt(t,(t=>"SOURCE"===t.tagName)),!o))return r(new Error("Media has no source."));i=Ei(o,"error",r)})).then((()=>(i&&i(),t)),(()=>{e&&e(),function(t){Si(t)&&(t.__AMP_MEDIA_LOAD_FAILURE_SRC=t.currentSrc||!0);let e=t;throw e&&e.src&&(e=e.src),Pt().createError(Pi,e)}(t)}))}function Si(t){return"AUDIO"===t.tagName||"VIDEO"===t.tagName}var Mi={"navigationStart":1,"redirectStart":1,"redirectEnd":1,"fetchStart":1,"domainLookupStart":1,"domainLookupEnd":1,"connectStart":1,"secureConnectionStart":1,"connectEnd":1,"requestStart":1,"responseStart":1,"responseEnd":1,"domLoading":2,"domInteractive":2,"domContentLoaded":2,"domComplete":2,"loadEventStart":3,"loadEventEnd":4};function Ri(t,e,i){const n=Mi[e]||3,r=i?Mi[i]||3:n,o=Math.max(n,r);let h;if(1===o)h=s();else if(2===o)h=Ai(t.document);else if(3===o)h=Ti(t);else if(4===o){const e=ti(t);h=Ti(t).then((()=>e.promise(1)))}return wt(h),h.then((()=>xi(t,e,i)))}function xi(t,e,i){const s=t.performance&&t.performance.timing;if(!s||0==s.navigationStart)return;const n=void 0===i?s[e]:s[i]-s[e];return!T(n)||n<0?void 0:n}function ki(t,e){const i=t.performance&&t.performance.navigation;if(i&&void 0!==i[e])return i[e]}JSON.parse('{"_ping_":{"renderStartImplemented":true,"clientIdScope":"_PING_","consentHandlingOverride":true},"1wo":{},"24smi":{"prefetch":"https://jsn.24smi.net/smi.js","preconnect":"https://data.24smi.net"},"4wmarketplace":{"renderStartImplemented":true},"a8":{"prefetch":"https://statics.a8.net/amp/ad.js","renderStartImplemented":true},"a9":{"prefetch":"https://z-na.amazon-adsystem.com/widgets/onejs?MarketPlace=US"},"accesstrade":{"prefetch":"https://h.accesstrade.net/js/amp/amp.js"},"adagio":{"prefetch":"https://js-ssl.neodatagroup.com/adagio_amp.js","preconnect":["https://ad-aws-it.neodatagroup.com","https://tracker.neodatagroup.com"],"renderStartImplemented":true},"adblade":{"prefetch":"https://web.adblade.com/js/ads/async/show.js","preconnect":["https://staticd.cdn.adblade.com","https://static.adblade.com"],"renderStartImplemented":true},"adbutler":{"prefetch":"https://servedbyadbutler.com/app.js"},"adenza":{"renderStartImplemented":true},"adform":{},"adfox":{"prefetch":"https://yandex.ru/ads/system/context.js","preconnect":["https://yastatic.net/"],"renderStartImplemented":true},"adgeneration":{"prefetch":"https://i.socdm.com/sdk/js/adg-script-loader.js"},"adglare":{"renderStartImplemented":true},"adhese":{"renderStartImplemented":true},"adincube":{"renderStartImplemented":true},"adition":{},"adman":{},"admanmedia":{"renderStartImplemented":true},"admixer":{"renderStartImplemented":true,"preconnect":["https://inv-nets.admixer.net","https://cdn.admixer.net"]},"adnuntius":{"prefetch":"https://cdn.adnuntius.com/adn.js","renderStartImplemented":true},"adocean":{"consentHandlingOverride":true},"adop":{},"adpicker":{"renderStartImplemented":true},"adplugg":{"prefetch":"https://www.adplugg.com/serve/js/ad.js","renderStartImplemented":true},"adpon":{"prefetch":"https://ad.adpon.jp/amp.js","clientIdScope":"AMP_ECID_ADPON"},"adpushup":{"prefetch":"https://securepubads.g.doubleclick.net/tag/js/gpt.js","preconnect":"https://cdn.adpushup.com"},"adreactor":{},"ads2bid":{"renderStartImplemented":true},"adsensor":{"prefetch":"https://wfpscripts.webspectator.com/amp/adsensor-amp.js","clientIdScope":"amp_ecid_adensor","renderStartImplemented":true},"adservsolutions":{},"adskeeper":{"renderStartImplemented":true,"preconnect":["https://jsc.adskeeper.com","https://servicer.adskeeper.com","https://s-img.adskeeper.com"]},"adsloom":{"clientIdScope":"AMP_ECID_ADSLOOM"},"adsnative":{"prefetch":"https://static.adsnative.com/static/js/render.v1.js","preconnect":"https://api.adsnative.com"},"adspeed":{"preconnect":"https://g.adspeed.net","renderStartImplemented":true},"adspirit":{},"adstir":{"prefetch":"https://js.ad-stir.com/js/adstir_async.js","preconnect":"https://ad.ad-stir.com"},"adstyle":{"prefetch":"https://widgets.ad.style/amp.js","preconnect":["https://w.ad.style"]},"adtech":{"prefetch":"https://s.aolcdn.com/os/ads/adsWrapper3.js","preconnect":["https://mads.at.atwola.com","https://aka-cdn.adtechus.com"]},"adtelligent":{"preconnect":["https://s.adtelligent.com"],"renderStartImplemented":true},"adthrive":{"prefetch":["https://www.googletagservices.com/tag/js/gpt.js"],"preconnect":["https://partner.googleadservices.com","https://securepubads.g.doubleclick.net","https://tpc.googlesyndication.com"],"renderStartImplemented":true},"adunity":{"preconnect":["https://content.adunity.com"],"renderStartImplemented":true},"aduptech":{"prefetch":"https://s.d.adup-tech.com/jsapi","preconnect":["https://d.adup-tech.com","https://m.adup-tech.com","https://v.adup-tech.com"],"renderStartImplemented":true,"consentHandlingOverride":true},"adventive":{"preconnect":["https://ads.adventive.com","https://amp.adventivedev.com"],"renderStartImplemented":true},"adverline":{"prefetch":"https://ads.adverline.com/richmedias/amp.js","preconnect":["https://adnext.fr"],"renderStartImplemented":true},"adverticum":{},"advertserve":{"renderStartImplemented":true},"adyoulike":{"consentHandlingOverride":true,"prefetch":"https://fo-static.omnitagjs.com/amp.js","renderStartImplemented":true},"adzerk":{},"affiliateb":{"prefetch":"https://track.affiliate-b.com/amp/a.js","renderStartImplemented":true},"aja":{"prefetch":["https://cdn.as.amanad.adtdp.com/sdk/asot-amp.js","https://cdn.as.amanad.adtdp.com/sdk/asot-v2.js"],"preconnect":["https://ad.as.amanad.adtdp.com"]},"appvador":{"prefetch":["https://cdn.apvdr.com/js/VastAdUnit.min.js","https://cdn.apvdr.com/js/VideoAd.min.js","https://cdn.apvdr.com/js/VideoAd3PAS.min.js","https://cdn.apvdr.com/js/VideoAdAutoPlay.min.js","https://cdn.apvdr.com/js/VideoAdNative.min.js"],"renderStartImplemented":true},"amoad":{"prefetch":["https://j.amoad.com/js/a.js","https://j.amoad.com/js/n.js"],"preconnect":["https://d.amoad.com","https://i.amoad.com","https://m.amoad.com","https://v.amoad.com"]},"amplified":{"preconnect":"https://srv.clickfuse.com","renderStartImplemented":true},"andbeyond":{"prefetch":"https://securepubads.g.doubleclick.net/tag/js/gpt.js","preconnect":"https://cdn.andbeyond.media"},"aniview":{"renderStartImplemented":true},"anyclip":{"prefetch":"https://player.anyclip.com/anyclip-widget/lre-widget/prod/v1/src/lre.js","preconnect":["https://trafficmanager.anyclip.com","https://lreprx-server.anyclip.com"],"renderStartImplemented":true},"appnexus":{"prefetch":"https://acdn.adnxs.com/ast/ast.js","preconnect":"https://ib.adnxs.com","renderStartImplemented":true},"atomx":{"prefetch":"https://s.ato.mx/p.js"},"avantisvideo":{"renderStartImplemented":true},"beaverads":{"renderStartImplemented":true},"beopinion":{"prefetch":"https://widget.beop.io/sdk.js","preconnect":["https://t.beop.io","https://s.beop.io","https://data.beop.io"],"renderStartImplemented":true},"bidtellect":{},"blade":{"prefetch":"https://sdk.streamrail.com/blade/sr.blade.js","renderStartImplemented":true},"brainy":{},"bringhub":{"renderStartImplemented":true,"preconnect":["https://static.bh-cdn.com","https://core-api.bringhub.io"]},"broadbandy":{"renderStartImplemented":true},"broadstreetads":{"prefetch":"https://cdn.broadstreetads.com/init-2.min.js","renderStartImplemented":true},"byplay":{},"caajainfeed":{"prefetch":["https://cdn.amanad.adtdp.com/sdk/ajaamp.js"],"preconnect":["https://ad.amanad.adtdp.com"]},"capirs":{"renderStartImplemented":true},"caprofitx":{"prefetch":["https://cdn.caprofitx.com/pfx.min.js","https://cdn.caprofitx.com/tags/amp/profitx_amp.js"],"preconnect":"https://ad.caprofitx.adtdp.com"},"cedato":{"renderStartImplemented":true},"chargeads":{},"colombia":{"prefetch":"https://static.clmbtech.com/ad/commons/js/colombia-amp.js"},"colombiafeed":{"prefetch":"https://static.clmbtech.com/c1e/static/themes/js/colombiafeed-amp.js"},"conative":{"renderStartImplemented":true},"connatix":{"renderStartImplemented":true},"contentad":{},"criteo":{"prefetch":"https://static.criteo.net/js/ld/publishertag.js","preconnect":"https://cas.criteo.com"},"csa":{"prefetch":"https://www.google.com/adsense/search/ads.js"},"clever":{"renderStartImplemented":true},"dable":{"preconnect":["https://static.dable.io","https://api.dable.io","https://images.dable.io"],"renderStartImplemented":true},"dex":{"renderStartImplemented":true},"digiteka":{"renderStartImplemented":true},"directadvert":{"renderStartImplemented":true},"distroscale":{"preconnect":["https://c.jsrdn.com","https://s.jsrdn.com","https://i.jsrdn.com"],"renderStartImplemented":true},"dotandads":{"prefetch":"https://amp.ad.dotandad.com/dotandadsAmp.js","preconnect":"https://bal.ad.dotandad.com"},"dynad":{"preconnect":["https://t.dynad.net","https://tm.jsuol.com.br"]},"eadv":{"renderStartImplemented":true,"clientIdScope":"AMP_ECID_EADV","prefetch":["https://www.eadv.it/track/esr.min.js","https://www.eadv.it/track/ead.min.js"]},"empower":{"prefetch":"https://cdn.empower.net/sdk/amp-ad.min.js","renderStartImplemented":true},"engageya":{},"epeex":{},"eplanning":{"prefetch":"https://us.img.e-planning.net/layers/epl-amp.js"},"exco":{"renderStartImplemented":true},"ezoic":{"prefetch":["https://www.googletagservices.com/tag/js/gpt.js","https://g.ezoic.net/ezoic/ampad.js"],"clientIdScope":"AMP_ECID_EZOIC","consentHandlingOverride":true,"renderStartImplemented":true},"f1e":{"prefetch":"https://img.ak.impact-ad.jp/util/f1e_amp.min.js"},"f1h":{"preconnect":"https://img.ak.impact-ad.jp","renderStartImplemented":true},"fake":{},"fake-delayed":{"renderStartImplemented":true},"feedad":{"clientIdScope":"__fa_amp","prefetch":"https://web.feedad.com/sdk/feedad-async.js","renderStartImplemented":true,"fullWidthHeightRatio":1.7777777777777777,"consentHandlingOverride":true},"felmat":{"prefetch":"https://t.felmat.net/js/fmamp.js","renderStartImplemented":true},"finative":{},"firstimpression":{"prefetch":"https://ecdn.firstimpression.io/static/js/fiamp.js","preconnect":"https://cdn.firstimpression.io","renderStartImplemented":true,"consentHandlingOverride":true},"flite":{},"fluct":{"prefetch":["https://pdn.adingo.jp/p.js"],"preconnect":["https://cdn-fluct.sh.adingo.jp","https://sh.adingo.jp","https://i.adingo.jp"]},"forkmedia":{"renderStartImplemented":true},"freewheel":{"prefetch":"https://cdn.stickyadstv.com/prime-time/fw-amp.min.js","renderStartImplemented":true},"fusion":{"prefetch":"https://assets.adtomafusion.net/fusion/latest/fusion-amp.min.js"},"gecko":{},"genieessp":{"prefetch":"https://js.gsspcln.jp/l/amp.js"},"geozo":{"renderStartImplemented":true},"giraff":{"renderStartImplemented":true},"glomex":{"prefetch":"https://player.glomex.com/integration/1/amp-embed.js"},"gmossp":{"prefetch":"https://cdn.gmossp-sp.jp/ads/amp.js"},"gumgum":{"prefetch":"https://js.gumgum.com/slot.js","renderStartImplemented":true},"holder":{"prefetch":"https://i.holder.com.ua/js2/holder/ajax/ampv1.js","preconnect":"https://h.holder.com.ua","renderStartImplemented":true},"ibillboard":{},"idealmedia":{"renderStartImplemented":true,"preconnect":["https://jsc.idealmedia.io","https://servicer.idealmedia.io","https://s-img.idealmedia.io/"]},"imedia":{"prefetch":"https://i.imedia.cz/js/im3.js","renderStartImplemented":true},"imobile":{"prefetch":"https://spamp.i-mobile.co.jp/script/amp.js","preconnect":"https://spad.i-mobile.co.jp"},"imonomy":{"renderStartImplemented":true},"improvedigital":{},"industrybrains":{"prefetch":"https://web.industrybrains.com/js/ads/async/show.js","preconnect":["https://staticd.cdn.industrybrains.com","https://static.industrybrains.com"],"renderStartImplemented":true},"inmobi":{"prefetch":"https://cf.cdn.inmobi.com/ad/inmobi.secure.js","renderStartImplemented":true},"innity":{"prefetch":"https://cdn.innity.net/admanager.js","preconnect":"https://as.innity.com","renderStartImplemented":true},"insticator":{"preconnect":"https://d3lcz8vpax4lo2.cloudfront.net","renderStartImplemented":true},"insurads":{"prefetch":"https://securepubads.g.doubleclick.net/tag/js/gpt.js","preconnect":["https://tpc.googlesyndication.com","https://adservice.google.com","https://cdn.insurads.com","https://services.insurads.com","https://messaging.insurads.com"],"renderStartImplemented":true,"consentHandlingOverride":true},"invibes":{"prefetch":"https://k.r66net.com/GetAmpLink","renderStartImplemented":true,"consentHandlingOverride":true},"iprom":{"prefetch":"https://cdn.ipromcloud.com/ipromNS.js"},"ix":{"prefetch":["https://js-sec.indexww.com/apl/amp.js"],"preconnect":"https://as-sec.casalemedia.com","renderStartImplemented":true},"jubna":{},"kargo":{},"ketshwa":{},"kiosked":{"renderStartImplemented":true},"jioads":{"renderStartImplemented":true},"jixie":{"prefetch":["https://scripts.jixie.media/jxamp.min.js"],"clientIdScope":"__jxamp","clientIdCookieName":"_jx","renderStartImplemented":true},"kixer":{"prefetch":"https://cdn.kixer.com/ad/load.js","renderStartImplemented":true},"kuadio":{},"lentainform":{"renderStartImplemented":true,"preconnect":["https://jsc.lentainform.com","https://servicer.lentainform.com","https://s-img.lentainform.com"]},"ligatus":{"prefetch":"https://ssl.ligatus.com/render/ligrend.js","renderStartImplemented":true},"lockerdome":{"prefetch":"https://cdn2.lockerdomecdn.com/_js/amp.js","renderStartImplemented":true},"logly":{"preconnect":["https://l.logly.co.jp","https://cdn.logly.co.jp"],"renderStartImplemented":true},"loka":{"prefetch":"https://loka-cdn.akamaized.net/scene/amp.js","preconnect":["https://scene-front.lokaplatform.com","https://loka-materials.akamaized.net"],"renderStartImplemented":true},"luckyads":{"renderStartImplemented":true},"macaw":{"renderStartImplemented":true},"mads":{"prefetch":"https://eu2.madsone.com/js/tags.js"},"mantis-display":{"prefetch":"https://assets.mantisadnetwork.com/mantodea.min.js","preconnect":["https://mantodea.mantisadnetwork.com","https://res.cloudinary.com","https://resize.mantisadnetwork.com"]},"marfeel":{"prefetch":"https://securepubads.g.doubleclick.net/tag/js/gpt.js","preconnect":["https://live.mrf.io","https://tpc.googlesyndication.com","https://fastlane.rubiconproject.com","https://htlb.casalemedia.com","https://prg.smartadserver.com","https://ib.adnxs.com","https://bidder.criteo.com","https://marfeel-d.openx.net","https://ice.360yield.com","https://mbid.marfeelrev.com","https://adservice.google.com"],"consentHandlingOverride":true},"mantis-recommend":{"prefetch":"https://assets.mantisadnetwork.com/recommend.min.js","preconnect":["https://mantodea.mantisadnetwork.com","https://resize.mantisadnetwork.com"]},"mediaad":{},"medianet":{"preconnect":"https://contextual.media.net","renderStartImplemented":true},"mediavine":{"prefetch":"https://amp.mediavine.com/wrapper.min.js","preconnect":["https://partner.googleadservices.com","https://securepubads.g.doubleclick.net","https://tpc.googlesyndication.com"],"renderStartImplemented":true,"consentHandlingOverride":true},"medyanet":{"renderStartImplemented":true},"meg":{"renderStartImplemented":true},"mgid":{"renderStartImplemented":true,"preconnect":["https://jsc.mgid.com","https://servicer.mgid.com","https://s-img.mgid.com"]},"microad":{"prefetch":"https://j.microad.net/js/camp.js","preconnect":["https://s-rtb.send.microad.jp","https://s-rtb.send.microadinc.com","https://cache.send.microad.jp","https://cache.send.microadinc.com","https://deb.send.microad.jp"]},"miximedia":{"renderStartImplemented":true},"mixpo":{"prefetch":"https://cdn.mixpo.com/js/loader.js","preconnect":["https://player1.mixpo.com","https://player2.mixpo.com"]},"monetizer101":{"renderStartImplemented":true},"mox":{"prefetch":["https://ad.mox.tv/js/amp.min.js","https://ad.mox.tv/mox/mwayss_invocation.min.js"],"renderStartImplemented":true},"my6sense":{"renderStartImplemented":true},"myfinance":{"preconnect":["https://a.myfidevs.io","https://static.myfinance.com","https://www.myfinance.com"],"renderStartImplemented":true,"clientIdScope":"AMP_ECID_GOOGLE"},"myoffrz":{"renderStartImplemented":true},"mytarget":{"prefetch":"https://ad.mail.ru/static/ads-async.js","renderStartImplemented":true},"myua":{"renderStartImplemented":true},"mywidget":{"preconnect":"https://likemore-fe.go.mail.ru","prefetch":"https://likemore-go.imgsmail.ru/widget_amp.js","renderStartImplemented":true},"nativeroll":{"prefetch":"https://cdn01.nativeroll.tv/js/seedr-player.min.js"},"nativery":{"preconnect":"https://cdn.nativery.com"},"nativo":{"prefetch":"https://s.ntv.io/serve/load.js"},"navegg":{"renderStartImplemented":true},"nend":{"prefetch":"https://js1.nend.net/js/amp.js","preconnect":["https://output.nend.net","https://img1.nend.net"]},"netletix":{"preconnect":["https://call.netzathleten-media.de"],"renderStartImplemented":true},"noddus":{"prefetch":"https://noddus.com/amp_loader.js","renderStartImplemented":true},"nokta":{"prefetch":"https://static.virgul.com/theme/mockups/noktaamp/ampjs.js","renderStartImplemented":true},"nws":{},"oblivki":{"renderStartImplemented":true},"onead":{"prefetch":"https://ad-specs.guoshipartners.com/static/js/onead-amp.min.js","renderStartImplemented":true},"onnetwork":{"renderStartImplemented":true},"openadstream":{},"openx":{"prefetch":"https://www.googletagservices.com/tag/js/gpt.js","preconnect":["https://partner.googleadservices.com","https://securepubads.g.doubleclick.net","https://tpc.googlesyndication.com"],"renderStartImplemented":true},"opinary":{"renderStartImplemented":true},"outbrain":{"renderStartImplemented":true,"prefetch":"https://widgets.outbrain.com/widgetAMP/outbrainAMP.min.js","preconnect":["https://odb.outbrain.com"],"consentHandlingOverride":true},"pixels":{"prefetch":"https://cdn.adsfactor.net/amp/pixels-amp.min.js","clientIdCookieName":"__AF","renderStartImplemented":true},"playstream":{"prefetch":"https://app.playstream.media/js/amp.js","renderStartImplemented":true},"plista":{},"polymorphicads":{"prefetch":"https://www.polymorphicads.jp/js/amp.js","preconnect":["https://img.polymorphicads.jp","https://ad.polymorphicads.jp"],"renderStartImplemented":true},"popin":{"renderStartImplemented":true},"postquare":{},"ppstudio":{"renderStartImplemented":true},"pressboard":{"renderStartImplemented":true},"promoteiq":{},"pubexchange":{},"pubfuture":{"renderStartImplemented":true},"pubguru":{"renderStartImplemented":true},"pubmatic":{"prefetch":"https://ads.pubmatic.com/AdServer/js/amp.js"},"pubmine":{"prefetch":["https://s.pubmine.com/head.js"],"preconnect":"https://delivery.g.switchadhub.com","renderStartImplemented":true},"puffnetwork":{"prefetch":"https://static.puffnetwork.com/amp_ad.js","renderStartImplemented":true},"pulse":{"prefetch":"https://static.pulse.mail.ru/pulse-widget-amp.js","renderStartImplemented":true},"pulsepoint":{"prefetch":"https://ads.contextweb.com/TagPublish/getjs.static.js","preconnect":"https://tag.contextweb.com"},"purch":{"prefetch":"https://ramp.purch.com/serve/creative_amp.js","renderStartImplemented":true},"quoraad":{"prefetch":"https://a.quora.com/amp_ad.js","preconnect":"https://ampad.quora.com","renderStartImplemented":true},"r9x":{"prefetch":"https://securepubads.g.doubleclick.net/tag/js/gpt.js","preconnect":"https://cdn.r9x.in"},"rakutenunifiedads":{"prefetch":"https://s-cdn.rmp.rakuten.co.jp/js/amp.js","renderStartImplemented":true},"rbinfox":{"renderStartImplemented":true},"rcmwidget":{"prefetch":"https://rcmjs.rambler.ru/static/rcmw/rcmw-amp.js","renderStartImplemented":true,"clientIdScope":"__rcmw_amp"},"readmo":{"renderStartImplemented":true},"realclick":{"renderStartImplemented":true},"recomad":{"renderStartImplemented":true},"recreativ":{"prefetch":"https://go.rcvlink.com/static/amp.js","renderStartImplemented":true},"relap":{"renderStartImplemented":true},"relappro":{"prefetch":"https://cdn.relappro.com/adservices/amp/relappro.amp.min.js","preconnect":"https://tags.relappro.com","renderStartImplemented":true},"remixd":{"preconnect":"https://tags.remixd.com","renderStartImplemented":true},"revcontent":{"prefetch":"https://labs-cdn.revcontent.com/build/amphtml/revcontent.amp.min.js","preconnect":["https://trends.revcontent.com","https://cdn.revcontent.com","https://img.revcontent.com"],"renderStartImplemented":true},"revjet":{"prefetch":"https://cdn.revjet.com/~cdn/JS/03/amp.js","renderStartImplemented":true},"rfp":{"prefetch":"https://js.rfp.fout.jp/rfp-amp.js","preconnect":"https://ad.rfp.fout.jp","renderStartImplemented":true},"rnetplus":{},"rubicon":{},"runative":{"prefetch":"https://cdn.run-syndicate.com/sdk/v1/n.js","renderStartImplemented":true},"sabavision":{"renderStartImplemented":true},"sas":{"renderStartImplemented":true},"seedingalliance":{},"seedtag":{"prefetch":"https://config.seedtag.com/omid/bridge/bridge.js","preconnect":["https://s.seedtag.com"],"consentHandlingOverride":true,"renderStartImplemented":true},"sekindo":{"renderStartImplemented":true},"sharethrough":{"renderStartImplemented":true},"shemedia":{"prefetch":["https://securepubads.g.doubleclick.net/tag/js/gpt.js","https://ads.shemedia.com/static/amp.js"],"preconnect":["https://partner.googleadservices.com","https://tpc.googlesyndication.com","https://ads.blogherads.com"],"renderStartImplemented":true},"sklik":{"prefetch":"https://c.imedia.cz/js/amp.js"},"slimcutmedia":{"preconnect":["https://sb.freeskreen.com","https://static.freeskreen.com","https://video.freeskreen.com"],"renderStartImplemented":true},"smartads":{"prefetch":"https://smart-ads.biz/amp.js"},"smartadserver":{"prefetch":"https://ec-ns.sascdn.com/diff/js/amp.v0.js","preconnect":"https://static.sascdn.com","renderStartImplemented":true},"smartclip":{"prefetch":"https://cdn.smartclip.net/amp/amp.v0.js","preconnect":"https://des.smartclip.net","renderStartImplemented":true},"smi2":{"renderStartImplemented":true},"smilewanted":{"prefetch":"https://prebid.smilewanted.com/amp/amp.js","preconnect":"https://static.smilewanted.com","renderStartImplemented":true},"sogouad":{"prefetch":"https://theta.sogoucdn.com/wap/js/aw.js","renderStartImplemented":true},"sortable":{"prefetch":"https://www.googletagservices.com/tag/js/gpt.js","preconnect":["https://tags-cdn.deployads.com","https://partner.googleadservices.com","https://securepubads.g.doubleclick.net","https://tpc.googlesyndication.com"],"renderStartImplemented":true},"sona":{"renderStartImplemented":true},"sovrn":{"prefetch":"https://ap.lijit.com/www/sovrn_amp/sovrn_ads.js"},"speakol":{"renderStartImplemented":true},"spotx":{"preconnect":"https://js.spotx.tv","renderStartImplemented":true},"springAds":{"preconnect":["https://ib.adnxs.com"],"renderStartImplemented":true},"ssp":{"prefetch":"https://ssp.imedia.cz/static/js/ssp.js","renderStartImplemented":true,"consentHandlingOverride":true},"strossle":{"preconnect":["https://amp.spklw.com","https://widgets.sprinklecontent.com","https://images.sprinklecontent.com"]},"sunmedia":{"preconnect":["https://static.sunmedia.tv","https://services.sunmedia.tv","https://creative.sunmedia.tv","https://vod.sunmedia.tv","https://mx-sunmedia.videoplaza.tv","https://es-sunicontent.videoplaza.tv","https://es-sunelespanol.videoplaza.tv","https://es-suncopperland.videoplaza.tv","https://search.spotxchange.com","https://tpc.googlesyndication.com"],"clientIdScope":"AMP_ECID_SUNMEDIA","fullWidthHeightRatio":1,"renderStartImplemented":true},"svknative":{"renderStartImplemented":true,"prefetch":"https://widget.svk-native.ru/js/embed.js"},"swoop":{"prefetch":"https://www.swoop-amp.com/amp.js","preconnect":["https://www.swpsvc.com","https://client.swpcld.com"],"renderStartImplemented":true},"taboola":{},"tagon":{"prefetch":"https://js.tagon.co/tagon-amp.min.js"},"tail":{"renderStartImplemented":true},"tcsemotion":{"prefetch":"https://ads.tcsemotion.com/www/delivery/amphb.js","renderStartImplemented":true},"teads":{"prefetch":"https://a.teads.tv/media/format/v3/teads-format.min.js","preconnect":["https://cdn2.teads.tv","https://t.teads.tv","https://r.teads.tv"],"consentHandlingOverride":true},"temedya":{"prefetch":["https://widget.cdn.vidyome.com/builds/loader-amp.js","https://vidyome-com.cdn.vidyome.com/vidyome/builds/widgets.js"],"renderStartImplemented":true},"torimochi":{"renderStartImplemented":true},"tracdelight":{"prefetch":"https://scripts.tracdelight.io/amp.js","renderStartImplemented":true},"trafficstars":{"prefetch":"https://cdn.tsyndicate.com/sdk/v1/master.spot.js","renderStartImplemented":true},"triplelift":{},"trugaze":{"clientIdScope":"__tg_amp","renderStartImplemented":true},"uas":{"prefetch":"https://ads.pubmatic.com/AdServer/js/phoenix.js"},"ucfunnel":{"renderStartImplemented":true},"uzou":{"preconnect":["https://speee-ad.akamaized.net"],"renderStartImplemented":true},"unruly":{"prefetch":"https://video.unrulymedia.com/native/native-loader.js","renderStartImplemented":true},"valuecommerce":{"prefetch":"https://amp.valuecommerce.com/amp_bridge.js","preconnect":["https://ad.jp.ap.valuecommerce.com"],"renderStartImplemented":true},"vdoai":{"prefetch":"https://a.vdo.ai/core/dependencies_amp/vdo.min.js","renderStartImplemented":true},"videointelligence":{"preconnect":"https://s.vi-serve.com","renderStartImplemented":true},"videonow":{"renderStartImplemented":true},"viralize":{"renderStartImplemented":true},"vlyby":{"prefetch":"https://cdn.vlyby.com/amp/qad/qad-outer2.js"},"vmfive":{"prefetch":"https://man.vm5apis.com/dist/adn-web-sdk.js","preconnect":["https://vawpro.vm5apis.com","https://vahfront.vm5apis.com"],"renderStartImplemented":true},"vox":{"renderStartImplemented":true},"webediads":{"prefetch":"https://eu1.wbdds.com/amp.min.js","preconnect":["https://goutee.top","https://mediaathay.org.uk"],"renderStartImplemented":true},"weborama-display":{"prefetch":["https://cstatic.weborama.fr/js/advertiserv2/adperf_launch_1.0.0_scrambled.js","https://cstatic.weborama.fr/js/advertiserv2/adperf_core_1.0.0_scrambled.js"]},"whopainfeed":{"prefetch":"https://widget.infeed.com.ar/widget/widget-amp.js"},"widespace":{},"wisteria":{"renderStartImplemented":true},"wpmedia":{"prefetch":"https://std.wpcdn.pl/wpjslib/wpjslib-amp.js","preconnect":["https://www.wp.pl","https://v.wpimg.pl"],"renderStartImplemented":true},"wunderkind":{"preconnect":["https://tag.wknd.ai","https://api.bounceexchange.com"],"renderStartImplemented":true,"fullWidthHeightRatio":1.3333333333333333},"xlift":{"prefetch":"https://cdn.x-lift.jp/resources/common/xlift_amp.js","renderStartImplemented":true},"yahoo":{"prefetch":"https://s.yimg.com/aaq/ampad/display.js","preconnect":"https://us.adserver.yahoo.com"},"yahoofedads":{"renderStartImplemented":true},"yahoojp":{"prefetch":["https://s.yimg.jp/images/listing/tool/yads/ydn/amp/amp.js","https://yads.c.yimg.jp/js/yads.js"],"preconnect":"https://yads.yahoo.co.jp"},"yahoonativeads":{"renderStartImplemented":true},"yandex":{"prefetch":"https://yandex.ru/ads/system/context.js","preconnect":["https://yastatic.net/"],"renderStartImplemented":true},"yektanet":{"preconnect":["https://cdn.yektanet.com","https://cg-sc.yektanet.com","https://native.yektanet.com","https://nfetch.yektanet.net","https://rfetch.yektanet.net","https://scrapper.yektanet.com","https://ua.yektanet.com","https://bfetch.yektanet.com","https://mostatil.cdn.yektanet.com"],"renderStartImplemented":true},"yengo":{"renderStartImplemented":true},"yieldbot":{"prefetch":["https://cdn.yldbt.com/js/yieldbot.intent.amp.js","https://msg.yldbt.com/js/ybmsg.html"],"preconnect":"https://i.yldbt.com"},"yieldmo":{"prefetch":"https://static.yieldmo.com/ym.1.js","preconnect":["https://s.yieldmo.com","https://ads.yieldmo.com"],"renderStartImplemented":true},"yieldone":{"prefetch":"https://img.ak.impact-ad.jp/ic/pone/commonjs/yone-amp.js"},"yieldpro":{"preconnect":"https://creatives.yieldpro.eu","renderStartImplemented":true},"zedo":{"prefetch":"https://ss3.zedo.com/gecko/tag/Gecko.amp.min.js","renderStartImplemented":true},"zen":{"prefetch":"https://zen.yandex.ru/widget-loader","preconnect":["https://yastatic.net/"],"renderStartImplemented":true},"zergnet":{},"zucks":{"preconnect":["https://j.zucks.net.zimg.jp","https://sh.zucks.net","https://k.zucks.net","https://static.zucks.net.zimg.jp"]},"baidu":{"prefetch":"https://dup.baidustatic.com/js/dm.js","renderStartImplemented":true},"sulvo":{}}');var ji="ready-scan",Vi=["AMP-AD","AMP-ANALYTICS","AMP-PIXEL","AMP-AD-EXIT"];var Oi,Ci="A1AmDEtc9EqFhFKlOOGGHrYWSU9kAAGyaN97Wcm9TASPANVGSpEThTpVd4Y557pAzN6Ft/ql91eXYh2lhP141QQAAACEeyJvcmlnaW4iOiJodHRwczovL2FtcHByb2plY3Qub3JnOjQ0MyIsImZlYXR1cmUiOiJQcml2YWN5U2FuZGJveEFkc0FQSXMiLCJleHBpcnkiOjE2ODA2NTI3OTksImlzU3ViZG9tYWluIjp0cnVlLCJpc1RoaXJkUGFydHkiOnRydWV9",Ni="cls",Li="clstu",Di="cls-1",zi="pc",Ui="prerender",Fi="preview",$i="visible",Hi="hidden",Bi="paused",Gi="inactive",qi=class{constructor(){this.G=null}add(t){return this.G||(this.G=[]),this.G.push(t),()=>{this.remove(t)}}remove(t){this.G&&I(this.G,t)}removeAll(){this.G&&(this.G.length=0)}fire(t){if(this.G)for(const e of this.G.slice())e(t)}getHandlerCount(){var t,e;return null!==(t=null===(e=this.G)||void 0===e?void 0:e.length)&&void 0!==t?t:0}},Wi=class{constructor(){this.W=m(),this.K=null}get(t){const e=this.W[t];return null==e?null:e}whenSignal(t){var e;let i=null===(e=this.K)||void 0===e?void 0:e[t];if(!i){const e=this.W[t];i=null!=e?{promise:"number"==typeof e?Promise.resolve(e):Promise.reject(e)}:new n,this.K||(this.K=m()),this.K[t]=i}return i.promise}signal(t,e){var i;if(null!=this.W[t])return;const s=null!=e?e:Date.now();this.W[t]=s;const n=null===(i=this.K)||void 0===i?void 0:i[t];null!=n&&n.resolve&&(n.resolve(s),n.resolve=void 0,n.reject=void 0)}rejectSignal(t,e){var i;if(null!=this.W[t])return;this.W[t]=e;const s=null===(i=this.K)||void 0===i?void 0:i[t];null!=s&&s.reject&&(s.reject(e),s.promise.catch((()=>{})),s.resolve=void 0,s.reject=void 0)}reset(t){var e;this.W[t]&&delete this.W[t];const i=null===(e=this.K)||void 0===e?void 0:e[t];i&&!i.resolve&&delete this.K[t]}},Yi=["Webkit","webkit","Moz","moz","ms","O","o"],Ki={"getPropertyPriority":()=>"","getPropertyValue":()=>""};function Qi(t){const e=t.replace(/[A-Z]/g,(t=>"-"+t.toLowerCase()));return Yi.some((t=>e.startsWith(t+"-")))?`-${e}`:e}function Ji(t,e,i){if(e.startsWith("--"))return e;Oi||(Oi=m());let s=Oi[e];if(!s||i){if(s=e,void 0===t[e]){const i=function(t){return t.charAt(0).toUpperCase()+t.slice(1)}(e),n=function(t,e){for(let i=0;i<Yi.length;i++){const s=Yi[i]+e;if(void 0!==t[s])return s}return""}(t,i);void 0!==t[n]&&(s=n)}i||(Oi[e]=s)}return s}function Xi(t,e){const{style:i}=t;for(const t in e)i.setProperty(Qi(Ji(i,t)),String(e[t]),"important")}function Zi(t,e,i,s,n){const r=Ji(t.style,e,n);if(!r)return;const o=s?i+s:i;t.style.setProperty(Qi(r),o)}function ts(t,e){for(const i in e)Zi(t,i,e[i])}function es(t,e){void 0===e&&(e=t.hasAttribute("hidden")),e?t.removeAttribute("hidden"):t.setAttribute("hidden","")}function is(t){return`${t}px`}function ss(t,e){return"number"==typeof t?e(t):t}function ns(t,e){return t.getComputedStyle(e)||Ki}function rs(t,e){for(let i=0;i<e.length;i++)Zi(t,e[i],null)}function os(t){const e=t[Ji(t,"visibilityState",!0)];if(e)return e;const i=Ji(t,"hidden",!0);return i in t&&t[i]?Hi:$i}function hs(t,e){if(!t.addEventListener)return;const i=cs(t);i&&t.addEventListener(i,e)}function as(t,e){if(!t.removeEventListener)return;const i=cs(t);i&&t.removeEventListener(i,e)}function cs(t){const e=Ji(t,"hidden",!0),i=e.indexOf("Hidden");return-1!=i?e.substring(0,i)+"Visibilitychange":"visibilitychange"}var ls=class{static getTop(t){return t.top}static getLocation(t){return t.location}static getDocumentReferrer(t){return t.document.referrer}static getHostname(t){return t.location.hostname}static getUserAgent(t){return t.navigator.userAgent}static getUserLanguage(t){return t.navigator.userLanguage||t.navigator.language}static getDevicePixelRatio(){return self.devicePixelRatio||1}static getSendBeacon(t){if(t.navigator.sendBeacon)return t.navigator.sendBeacon.bind(t.navigator)}static getXMLHttpRequest(t){return t.XMLHttpRequest}static getImage(t){return t.Image}},us="__AMP__",ds="-ampdoc-ext-known",ps="-ampdoc-first-visible",ms="-ampdoc-next-visible",fs="-ampdoc-first-previewed",gs=class{constructor(t,e,i){this.win=t,this.Y=m(),this.J=e,this.X=i&&i.signals||new Wi,this.Z=i&&i.params||m(),this.tt=null,this.it={};const s=this.Z.visibilityState;var n;wt(!s||"prerender"===(n=s)||"preview"===n||"visible"===n||"hidden"===n||"paused"===n||"inactive"===n),this.st=i&&i.visibilityState||s||null,this.D=null,this.et=new qi,this.nt=null,this.rt=[];const r=this.ht.bind(this);this.J&&this.rt.push(this.J.onVisibilityChanged(r)),hs(this.win.document,r),this.rt.push((()=>as(this.win.document,r))),this.ht()}dispose(){(function(t){const e=ye(t);for(const t in e){if(!Object.prototype.hasOwnProperty.call(e,t))continue;const i=e[t];i.sharedInstance||(i.obj?be(t,i.obj):i.promise&&i.promise.then((e=>be(t,e))))}})(this),this.rt.forEach((t=>t()))}isSingleDoc(){return wt(null)}getParent(){return this.J}signals(){return this.X}getParam(t){const e=this.Z[t];return null==e?null:e}getMeta(){return this.tt||(this.tt=m(),this.win.document.head.querySelectorAll("meta[name]").forEach((t=>{const e=t.getAttribute("name"),i=t.getAttribute("content");e&&null!==i&&void 0===this.tt[e]&&(this.tt[e]=i)}))),m(this.tt)}getMetaByName(t){if(!t)return null;const e=this.getMeta()[t];return void 0!==e?e:null}setMetaByName(t,e){wt(null)}declaresExtension(t,e){const i=this.it[t];return!(!i||e&&i!==e)}declareExtension(t,e){wt(!this.it[t]||this.it[t]===e),this.it[t]=e}getExtensionVersion(t){return this.it[t]||null}setExtensionsKnown(){this.X.signal(ds)}whenExtensionsKnown(){return this.X.whenSignal(ds)}getRootNode(){return wt(null)}getHeadNode(){}isBodyAvailable(){return wt(!1)}getBody(){return wt(null)}waitForBodyOpen(){return wt(null)}isReady(){return wt(null)}whenReady(){return wt(null)}getUrl(){return wt(null)}getElementById(t){return this.getRootNode().getElementById(t)}contains(t){return this.getRootNode().contains(t)}overrideVisibilityState(t){this.st!=t&&(this.st=t,this.ht())}ht(){const t=os(this.win.document);let e,i=$i;for(let t=this.J;t;t=t.getParent())if(t.getVisibilityState()!=$i){i=t.getVisibilityState();break}const s=this.st||$i;if(e=s==$i&&i==$i&&t==$i?$i:t==Hi&&s==Bi?t:s==Bi||s==Gi?s:i==Bi||i==Gi?i:s==Fi||t==Fi||i==Fi?Fi:s==Ui||t==Ui||i==Ui?Ui:Hi,this.D!=e){if(e==$i){var n;const{performance:t}=this.win;let e=Math.floor(null!==(n=t.timeOrigin)&&void 0!==n?n:t.timing.navigationStart);null!=this.D&&(e+=Math.floor(t.now())),this.nt=e,this.X.signal(ps,e),this.X.signal(ms,e)}else this.X.reset(ms);e==Fi&&this.X.signal(fs),this.D=e,this.et.fire()}}whenFirstPreviewedOrVisible(){return Promise.race([this.whenFirstPreviewed(),this.whenFirstVisible()])}whenFirstPreviewed(){return this.X.whenSignal(fs).then((()=>{}))}whenFirstVisible(){return this.X.whenSignal(ps).then((()=>{}))}whenNextVisible(){return this.X.whenSignal(ms).then((()=>{}))}getFirstVisibleTime(){return this.X.get(ps)}getLastVisibleTime(){return this.nt}getVisibilityState(){return wt(this.D)}isPreview(){return this.D==Fi}isVisible(){return this.D==$i}hasBeenVisible(){return null!=this.getLastVisibleTime()}onVisibilityChanged(t){return this.et.add(t)}registerSingleton(t){return!this.Y[t]&&(this.Y[t]=!0,!0)}},vs=class extends gs{constructor(t,e){super(t,null,e),this.ot=this.win.document.body?Promise.resolve(this.win.document.body):Lt(this.win.document).then((()=>this.getBody())),this.ut=_i(this.win.document)}isSingleDoc(){return!0}getRootNode(){return this.win.document}getUrl(){return ls.getLocation(this.win).href}getHeadNode(){return this.win.document.head}isBodyAvailable(){return!!this.win.document.body}getBody(){return this.win.document.body}waitForBodyOpen(){return this.ot}isReady(){return mi(this.win.document)}whenReady(){return this.ut}},_s=class extends gs{constructor(t,e,i,s){super(t,null,s),this.lt=e,this.ct=i,this.dt=null;const r=new n;this.ot=r.promise,this.ft=r.resolve,this._t=!1;const o=new n;this.ut=o.promise,this.At=o.resolve}isSingleDoc(){return!1}getRootNode(){return this.ct}getUrl(){return this.lt}getHeadNode(){return this.ct}isBodyAvailable(){return!!this.dt}getBody(){return this.dt}setBody(t){wt(!this.dt),this.dt=t,this.ft(t),this.ft=void 0}waitForBodyOpen(){return this.ot}isReady(){return this._t}setReady(){wt(!this._t),this._t=!0,this.At(),this.At=void 0}whenReady(){return this.ut}getMeta(){return m(this.tt)}setMetaByName(t,e){wt(t),this.tt||(this.tt=m()),this.tt[t]=e}},As=class extends gs{constructor(t,e,i,s){super(t,i,s),this.lt=e,this.ot=this.win.document.body?Promise.resolve(this.win.document.body):Lt(this.win.document).then((()=>this.getBody())),this._t=!1;const r=new n;this.ut=r.promise,this.At=r.resolve}isSingleDoc(){return!1}getRootNode(){return this.win.document}getUrl(){return this.lt}getHeadNode(){return this.win.document.head}isBodyAvailable(){return!!this.win.document.body}getBody(){return this.win.document.body}waitForBodyOpen(){return this.ot}isReady(){return this._t}whenReady(){return this.ut}setReady(){wt(!this._t),this._t=!0,this.At(),this.At=void 0}};function ys(t,e){const i=m();return e?Object.assign(i,e):(t.name&&0==t.name.indexOf(us)&&Object.assign(i,W(t.name.substring(us.length))),t.location&&t.location.hash&&Object.assign(i,W(t.location.hash))),i}var Ps="nodisplay",bs="fixed",Is="fixed-height",ws="responsive",Es="container",Ts="fill",Ss="flex-item",Ms="fluid",Rs="intrinsic",xs=/^amp\-(video|.+player)|AMP-BRIGHTCOVE|AMP-DAILYMOTION|AMP-YOUTUBE|AMP-VIMEO|AMP-IMA-VIDEO/i;function ks(t){if("nodisplay"===(e=t)||"fixed"===e||"fixed-height"===e||"responsive"===e||"container"===e||"fill"===e||"flex-item"===e||"fluid"===e||"intrinsic"===e)return t;var e}function js(t){return"i-amphtml-layout-"+t}function Vs(t){return t==bs||t==Is||t==ws||t==Ts||t==Ss||t==Ms||t==Rs}function Os(t){return"number"==typeof t?t+"px":t&&/^\d+(\.\d+)?(px|em|rem|vh|vw|vmin|vmax|cm|mm|q|in|pc|pt)?$/.test(t)?/^\d+(\.\d+)?$/.test(t)?t+"px":t:void 0}function Cs(t){!function(t){L(/^\d+(\.\d+)?(px|em|rem|vh|vw|vmin|vmax|cm|mm|q|in|pc|pt)$/.test(null!=t?t:""),"Invalid length value: %s",t)}(t);const e=/[a-z]+/i.exec(null!=t?t:"");return L(e,"Failed to read units from %s",t),e[0]}function Ns(t){const e=parseFloat(t);return T(e)?e:void 0}function Ls(t,e){t.classList.add("i-amphtml-fill-content"),e&&t.classList.add("i-amphtml-replaced-content")}function Ds(t,e,i,s){const n=P(t);for(const t of n){const n=e.getAttribute(t);null!==n?i.setAttribute(t,n):s&&i.removeAttribute(t)}}var zs,Us="amp:attached",Fs="amp:load-start",$s="amp:load-end",Hs="ready-upgrade",Bs="upgraded",Gs="built",qs="mounted",Ws="load-start",Ys="render-start",Ks="load-end",Qs="unload";function Js(t,e){return[{query:t.matchMedia(e),value:"1"},{query:null,value:""}]}function Xs(t,e){return e.split(",").map((e=>{if(0==(e=e.replace(/\s+/g," ").trim()).length)return;let i,s,n;if(")"==e.charAt(e.length-1)){let t=1;for(n=e.length-2;n>=0;n--){const i=e.charAt(n);if("("==i?t--:")"==i&&t++,0==t)break}const i=n-1;if(n>0)for(n--;n>=0;n--){const t=e.charAt(n);if(!("%"==t||"-"==t||"_"==t||t>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"))break}if(n>=i)return null}else for(n=e.length-2;n>=0;n--){const t=e.charAt(n);if(!("%"==t||"."==t||t>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"))break}return n>=0?(i=e.substring(0,n+1).trim(),s=e.substring(n+1).trim()):(s=e,i=void 0),s?{query:i?t.matchMedia(i):null,value:s}:null})).filter(Boolean)}function Zs(t,e,i){for(let s=0;s<t.length;s++){const{query:n}=t[s];n&&(void 0!==n.onchange?n.onchange=i?e:null:i?n.addListener(e):n.removeListener(e))}}function tn(t){const e=t.ownerDocument||t;return zs&&zs.ownerDocument===e||(zs=e.createElement("div")),en}function en(t){return function(t,e){if(V(1===e.length),V(Array.isArray(e)||f(e,"raw")),self.trustedTypes&&self.trustedTypes.createPolicy){const i=self.trustedTypes.createPolicy("static-template#createNode",{createHTML:function(t){return e[0]}});t.innerHTML=i.createHTML("ignored")}else t.innerHTML=e[0];const i=t.firstElementChild;return V(i),V(!i.nextElementSibling),t.removeChild(i),i}(zs,t)}var sn=['<i-amphtml-sizer class=i-amphtml-sizer slot=i-amphtml-svc><img alt="" role=presentation aria-hidden=true class=i-amphtml-intrinsic-sizer></i-amphtml-sizer>'],nn={"AMP-PIXEL":{width:"0px",height:"0px"},"AMP-ANALYTICS":{width:"1px",height:"1px"},"AMP-AUDIO":null,"AMP-SOCIAL-SHARE":{width:"60px",height:"44px"}};function rn(t){const e=t.getAttribute("layout"),i=t.getAttribute("width"),s=t.getAttribute("height"),n=t.getAttribute("sizes"),r=t.getAttribute("heights"),o=e?ks(e):null;L(void 0!==o,'Invalid "layout" value: %s, %s',e,t);const h=i&&"auto"!=i?Os(i):i;L(void 0!==h,'Invalid "width" value: %s, %s',i,t);const a=s&&"fluid"!=s?Os(s):s;let c,l,u;if(L(void 0!==a,'Invalid "height" value: %s, %s',s,t),o&&o!=bs&&o!=Is||h&&a||(d=(d=t.tagName).toUpperCase(),void 0===nn[d]))c=h,l=a;else{const e=function(t){const e=t.tagName.toUpperCase();if(V(void 0!==nn[e]),!nn[e]){const i=t.ownerDocument,s=e.replace(/^AMP\-/,""),n=i.createElement(s);n.controls=!0,ts(n,{position:"absolute",visibility:"hidden"}),i.body.appendChild(n),nn[e]={width:(n.offsetWidth||1)+"px",height:(n.offsetHeight||1)+"px"},i.body.removeChild(n)}return nn[e]}(t);c=h||o==Is?h:e.width,l=a||e.height}var d;return u=o||(c||l?"fluid"==l?Ms:!l||c&&"auto"!=c?l&&c&&(n||r)?ws:bs:Is:Es),u!=bs&&u!=Is&&u!=ws&&u!=Rs||L(l,'The "height" attribute is missing: %s',t),u==Is&&L(!c||"auto"==c,'The "width" attribute must be missing or "auto": %s',t),u!=bs&&u!=ws&&u!=Rs||L(c&&"auto"!=c,'The "width" attribute must be present and not "auto": %s',t),u==ws||u==Rs?L(Cs(c)==Cs(l),'Length units should be the same for "width" and "height": %s, %s, %s',i,s,t):L(null===r,'"heights" attribute must be missing: %s',t),{layout:u,width:c,height:l}}var on={"amp-dynamic-css-classes":"[custom-element=amp-dynamic-css-classes]","variant":"amp-experiment"};function hn(t){const e=t.document;return wt(e.body),Object.keys(on).filter((t=>e.querySelector(on[t])))}function an(t,e,i,s,n){const r=t.getHeadNode(),o=function(t,e,i,s){let n=t.__AMP_CSS_SM;n||(n=t.__AMP_CSS_SM=m());const r=!i&&s&&"amp-custom"!=s&&"amp-keyframes"!=s,o=i?"amp-runtime":r?`amp-extension=${s}`:null;if(o){const i=cn(t,n,o);if(i)return"STYLE"==i.tagName&&i.textContent!==e&&(i.textContent=e),i}const h=(t.ownerDocument||t).createElement("style");h.textContent=e;let a=null;return i?h.setAttribute("amp-runtime",""):r?(h.setAttribute("amp-extension",s||""),a=cn(t,n,"amp-runtime")):(s&&h.setAttribute(s,""),a=t.lastChild),function(t,e,i=null){if(!i)return void function(t,e){t.insertBefore(e,t.firstChild)}(t,e);const s=i.nextSibling;t.insertBefore(e,s)}(t,h,a),o&&(n[o]=h),h}(r,function(t,e){const i=t.__AMP_CSS_TR;return i?i(e):e}(r,e),s||!1,n||null);if(i){const e=t.getRootNode();if(pn(e,o))return i(o),o;const s=setInterval((()=>{pn(e,o)&&(clearInterval(s),i(o))}),4)}return o}function cn(t,e,i){if(e[i])return e[i];const s=t.querySelector(`style[${i}], link[${i}]`);return s?(e[i]=s,s):null}var ln=!1;function un(t){wt(t.defaultView),ln||(ln=!0,dn(t))}function dn(t){ts(t.body,{opacity:1,visibility:"visible","animation":"none"})}function pn(t,e){const i=t.styleSheets;for(let t=0;t<i.length;t++)if(i[t].ownerNode==e)return!0;return!1}var mn,fn=new Set(["c","v","a","ad"]),gn="__amp_source_origin",vn=t=>"string"==typeof t?_n(t):t;function _n(t,e){return mn||(mn=self.document.createElement("a")),An(mn,t)}function An(t,e,i){return t.href="",new URL(e,t.href)}function yn(t,e,i){if(!e)return t;const s=t.split("#",2),n=s[0].split("?",2);let r=n[0]+(n[1]?i?`?${e}&${n[1]}`:`?${n[1]}&${e}`:`?${e}`);return r+=s[1]?`#${s[1]}`:"",r}function Pn(t,e){return`${encodeURIComponent(t)}=${encodeURIComponent(e)}`}function bn(t,e){return yn(t,In(e))}function In(t){const e=[];for(const i in t){let s=t[i];if(null!=s){s=P(s);for(let t=0;t<s.length;t++)e.push(Pn(i,s[t]))}}return e.join("&")}function wn(t){return"https:"==(t=vn(t)).protocol||"localhost"==t.hostname||"127.0.0.1"==t.hostname||function(t,e){const i=t.length-e.length;return i>=0&&t.indexOf(e,i)==i}(t.hostname,".localhost")}function En(t,e,i="source"){return Et(null!=t,"%s %s must be available",e,i),Et(wn(t)||/^\/\//.test(t),'%s %s must start with "https://" or "//" or be relative and served from either https or from localhost. Invalid value: %s',e,i,t),t}function Tn(t){const e=t.indexOf("#");return-1==e?t:t.substring(0,e)}function Sn(t){return Q.test(vn(t).origin)}function Mn(t){return!(t&&B.includes(vn(t).protocol))}function Rn(t){const{hash:e,origin:i,pathname:s,search:n}=_n(t);return i+s+xn(n)+e}function xn(t){return function(t,e){if(!t||"?"==t)return"";const i=new RegExp("[?&](amp_(js[^&=]*|gsa|r|kit)|usqp)\\b[^&]*","g"),s=t.replace(i,"").replace(/^[?&]/,"");return s?"?"+s:""}(t)}function kn(t){if(!Sn(t=vn(t)))return t.href;const e=t.pathname.split("/"),i=e[1];Et(fn.has(i),"Unknown path prefix in url %s",t.href);const s=e[2],n="s"==s?"https://"+decodeURIComponent(e[3]):"http://"+decodeURIComponent(s);return Et(n.indexOf(".")>0,"Expected a . in origin %s",n),e.splice(1,"s"==s?3:2),n+e.join("/")+xn(t.search)+(t.hash||"")}function jn(t){return _n(kn(t)).origin}function Vn(t,e){return e=vn(e),new URL(t,e.href).toString()}function On(t,e){return Cn(e),function(t,e,i,s){return yn(t,Pn("__amp_source_origin",i),void 0)}(e,0,jn(t.location.href))}function Cn(t){const e=W(_n(t).search);Et(!(gn in e),"Source origin is not allowed in %s",t)}var Nn="CANCELLED",Ln="BLOCK_BY_CONSENT",Dn=self.__AMP_ERRORS||[];self.__AMP_ERRORS=Dn;var zn=function(t){return(zn=function(t){const e=function(t){let e=0;return()=>{let t=Math.pow(1.5,e++);return t+=function(t,e){let i=t*(e=e||.3)*Math.random();return Math.random()>.5&&(i*=-1),i}(t),1e3*t}}();return t=>setTimeout(t,e())}())(t)};function Un(t,e){try{let i;if(t)if(void 0!==t.message)t=o(t),i=!0;else{const e=t;(t=new Error(function(t){try{return JSON.stringify(t)}catch(e){return String(t)}}(e))).origError=e}else t=new Error("Unknown error");if(t.reported)return t;if(t.reported=!0,t.messageArray){const e=function(t,e){for(let e=0;e<t.length;e++)if(null==(i=t[e])?void 0:i.tagName)return e;var i;return-1}(t.messageArray);e>-1&&(t.associatedElement=t.messageArray[e])}const s=e||t.associatedElement;if(s&&s.classList&&s.classList.add("i-amphtml-error"),self.console&&(x(t.message)||!t.expected)){const e=console.error||console.log;t.messageArray?e.apply(console,t.messageArray):s?e.call(console,t.message,s):e.call(console,t.message)}s&&s.dispatchCustomEventForTesting&&s.dispatchCustomEventForTesting("amp:error",t.message),Hn.call(self,void 0,void 0,void 0,void 0,t)}catch(t){setTimeout((function(){throw t}))}return t}function Fn(){return new Error(Nn)}function $n(t){return!!t&&("string"==typeof t?t.startsWith(Ln):"string"==typeof t.message&&t.message.startsWith(Ln))}function Hn(t,e,i,n,r){!this||!this.document||r&&r.expected||un(this.document);let o=!1;try{o=function(t){if(!t.document)return!1;const e=t.document.querySelectorAll("script[src]");for(let t=0;t<e.length;t++)if(!Sn(e[t].src.toLowerCase()))return!0;return!1}(self)}catch(t){}if(o&&Math.random()>.01)return;const h=function(t,e,i,s,n,r){t=function(t,e){return e&&(t=e.message?e.message:String(e)),t||(t="Unknown error"),t}(t,n);let o=!(!n||!n.expected);if(/_reported_/.test(t))return;if(t==Nn)return;const h=!(self&&self.window),a=Math.random();if((function(t){return-1!=t.indexOf(Pi)}(t)||"Script error."==t||h)&&(o=!0,a>.001))return;const c=x(t);if(c&&a>.1)return;const l=Object.create(null);l.v=ct().rtvVersion,l.noAmp=r?"1":"0",l.m=t.replace(S,""),l.a=c?"1":"0",l.ex=o?"1":"0",l.dw=h?"1":"0";let u="1p";var d,p;if(u="esm",l.esm="1",l.rt="esm",l.ca=null!==(p=self.AMP_CONFIG)&&void 0!==p&&p.canary?"1":"0",l.bt=(null===(d=self.AMP_CONFIG)||void 0===d?void 0:d.type)||"unknown",self.location.ancestorOrigins&&self.location.ancestorOrigins[0]&&(l.or=self.location.ancestorOrigins[0]),self.viewerState&&(l.vs=self.viewerState),self.parent&&self.parent!=self&&(l.iem="1"),self.AMP&&self.AMP.viewer){const t=self.AMP.viewer.getResolvedViewerUrl(),e=self.AMP.viewer.maybeGetMessagingOrigin();t&&(l.rvu=t),e&&(l.mso=e)}const m=[],f=self[Te]||null;for(const t in f){const e=f[t];m.push(`${t}=${e?"1":"0"}`)}var g,v,_;return l.exps=m.join(","),n?(l.el=(null===(g=n.associatedElement)||void 0===g?void 0:g.tagName)||"u",n.args&&(l.args=JSON.stringify(n.args)),c||n.ignoreStack||!n.stack||(l.s=n.stack),n.message&&(n.message+=" _reported_")):(l.f=e||"",l.l=i||"",l.c=s||""),l.r=self.document?self.document.referrer:"",l.ae=Dn.join(","),l.fr=self.location.originalHash||self.location.hash,"production"===l.bt&&(l.pt="1"),_=t,(v=Dn).length>=25&&v.splice(0,v.length-25+1),v.push(_),l}(t,e,i,n,r,o);h&&zn((()=>{try{return function(t,e){return e.pt&&Math.random()<.9?s():function(t,e){const i=He(t);if(!i.isSingleDoc())return Promise.resolve(!1);const s=i.getSingleDoc();if(!s.getRootNode().documentElement.hasAttribute("report-errors-to-viewer"))return Promise.resolve(!1);const n=ni(s);return n.hasCapability("errorReporter")?n.isTrustedViewer().then((t=>{return!!t&&(n.sendMessage("error",{"m":(i=e).m,"a":i.a,"s":i.s,"el":i.el,"ex":i.ex,"v":i.v,"pt":i.pt}),!0);var i})):Promise.resolve(!1)}(t,e).then((t=>{if(!t){const t=new XMLHttpRequest;t.open("POST",Math.random()<.1?nt:st,!0),t.send(JSON.stringify(e))}}))}(this,h).catch((()=>{}))}catch(t){}}))}var Bn="Resource",Gn=class{static forElement(t){return wt(Gn.forElementOptional(t))}static forElementOptional(t){return t.__AMP__RESOURCE}static setOwner(t,e){wt(e.contains(t)),Gn.forElementOptional(t)&&Gn.forElementOptional(t).updateOwner(e),t.__AMP__OWNER=e;const i=t.getElementsByClassName("i-amphtml-element");for(let t=0;t<i.length;t++){const e=i[t];Gn.forElementOptional(e)&&Gn.forElementOptional(e).updateOwner(void 0)}}constructor(t,e,i){e.__AMP__RESOURCE=this,this.gt=t,this.element=e,this.debugid=e.tagName.toLowerCase()+"#"+t,this.hostWin=e.ownerDocument.defaultView,this.Pt=i,this.vt=e.hasAttribute("placeholder"),this.Et=!1,this.Tt=void 0,this.It=e.isBuilt()?1:0,0==this.It&&e.isBuilding()&&this.build(),this.Mt=-1,this.Rt=0,this.yt=null,this.wt=null,this.bt=!1,this.Vt=Kt(-1e4,-1e4,0,0),this.St=null,this.xt=!1,this.Ot=null,this.Ct=null,this.kt=void 0;const s=new n;this.Nt=s.promise,this.Dt=s.resolve,this.Lt=!1}getId(){return this.gt}updateOwner(t){this.Tt=t}getOwner(){if(void 0===this.Tt){for(let t=this.element;t;t=t.parentElement)if(t.__AMP__OWNER){this.Tt=t.__AMP__OWNER;break}void 0===this.Tt&&(this.Tt=null)}return this.Tt}hasOwner(){return!!this.getOwner()}getLayoutPriority(){return-1!=this.Mt?this.Mt:this.element.getLayoutPriority()}updateLayoutPriority(t){this.Mt=t}getState(){return this.It}isBuilt(){return this.element.isBuilt()}isBuilding(){return this.Et}whenBuilt(){return this.element.signals().whenSignal("res-built")}build(){return this.Et||!this.element.isUpgraded()?null:(this.Et=!0,this.element.buildInternal().then((()=>{this.Et=!1,this.It=1,this.element.signals().signal("res-built")}),(t=>{throw this.maybeReportErrorOnBuildFailure(t),this.Et=!1,this.element.signals().rejectSignal("res-built",t),t})))}maybeReportErrorOnBuildFailure(t){$n(t)||It().error(Bn,"failed to build:",this.debugid,t)}changeSize(t,e,i){this.element.applySize(t,e,i),this.requestMeasure()}overflowCallback(t,e,i,s){t&&(this.kt={height:e,width:i,margins:s}),this.element.overflowCallback(t,e,i,s)}resetPendingChangeSize(){this.kt=void 0}getPendingChangeSize(){return this.kt}getUpgradeDelayMs(){return this.element.getUpgradeDelayMs()}measure(){if(this.vt&&this.element.parentElement&&this.element.parentElement.tagName.startsWith("AMP-")&&!("__AMP__RESOURCE"in this.element.parentElement))return;if(!this.element.ownerDocument||!this.element.ownerDocument.defaultView)return void(this.It=1);this.xt=!1;const t=this.Vt;this.Ut();const e=this.Vt,i=(n=e,!((s=t).width==n.width&&s.height===n.height));var s,n;(1==this.It||t.top!=e.top||i)&&this.element.isUpgraded()&&(1==this.It?this.It=2:4!=this.It&&5!=this.It||!this.element.isRelayoutNeeded()||(this.It=2)),this.hasBeenMeasured()||(this.St=e),this.element.updateLayoutBox(e,i)}ensureMeasured(){return this.hasBeenMeasured()?s():ri(this.hostWin).measure((()=>this.measure()))}Ut(){const t=oi(this.element);this.Vt=t.getLayoutRect(this.element);let e=!1;if(t.supportsPositionFixed()&&this.isDisplayed()){const{win:i}=this.Pt.getAmpdoc(),{body:s}=i.document;for(let n=this.element;n&&n!=s;n=n.offsetParent){if(n.isAlwaysFixed&&n.isAlwaysFixed()){e=!0;break}if(t.isDeclaredFixed(n)&&"fixed"==ns(i,n).position){e=!0;break}}}this.bt=e,e&&(this.Vt=Jt(this.Vt,-t.getScrollLeft(),-t.getScrollTop()))}completeCollapse(){es(this.element,!1),this.Vt=Kt(this.Vt.left,this.Vt.top,0,0),this.bt=!1,this.element.updateLayoutBox(this.getLayoutBox());const t=this.getOwner();t&&t.collapsedCallback(this.element)}completeExpand(){es(this.element,!0),this.requestMeasure()}isMeasureRequested(){return this.xt}hasBeenMeasured(){return!!this.St}requestMeasure(){this.xt=!0}getLayoutSize(){return function(t){const{height:e,width:i}=t;return{width:i,height:e}}(this.Vt)}getLayoutBox(){if(!this.bt)return this.Vt;const t=oi(this.element);return Jt(this.Vt,t.getScrollLeft(),t.getScrollTop())}getInitialLayoutBox(){return this.St||this.Vt}isDisplayed(){if(!this.element.ownerDocument||!this.element.ownerDocument.defaultView)return!1;const t=this.element.getLayout()==Ms,e=this.getLayoutBox(),i=e.height>0&&e.width>0;return t||i}isFixed(){return this.bt}overlaps(t){return i=t,(e=this.getLayoutBox()).top<=i.bottom&&i.top<=e.bottom&&e.left<=i.right&&i.left<=e.right;var e,i}prerenderAllowed(){return this.element.prerenderAllowed()}previewAllowed(){return this.element.previewAllowed()}isBuildRenderBlocking(){return this.element.isBuildRenderBlocking()}whenWithinViewport(t){if(wt(!1!==t),!this.isLayoutPending()||!0===t)return s();const e=t,i=String(e);return this.Ot&&this.Ot[i]?this.Ot[i].promise:this.isWithinViewportRatio(e)?s():(this.Ot=this.Ot||{},this.Ot[i]=new n,this.Ot[i].promise)}$t(){if(!this.Ot)return;const t=this.getDistanceViewportRatio();for(const e in this.Ot)this.isWithinViewportRatio(parseFloat(e),t)&&(this.Ot[e].resolve(),delete this.Ot[e])}getDistanceViewportRatio(){const t=oi(this.element).getRect(),e=this.getLayoutBox(),i=this.Pt.getScrollDirection();let s=1,n=0;if(t.right<e.left||t.left>e.right)return{distance:!1};if(t.bottom<e.top)n=e.top-t.bottom,-1==i&&(s=2);else{if(!(t.top>e.bottom))return{distance:!0};n=t.top-e.bottom,1==i&&(s=2)}return{distance:n,scrollPenalty:s,viewportHeight:t.height}}isWithinViewportRatio(t,e){if("boolean"==typeof t)return t;const{distance:i,scrollPenalty:s,viewportHeight:n}=e||this.getDistanceViewportRatio();return"boolean"==typeof i?i:i<n*t/s}renderOutsideViewport(){return this.$t(),this.hasOwner()||this.isWithinViewportRatio(this.element.renderOutsideViewport())}idleRenderOutsideViewport(){return this.isWithinViewportRatio(this.element.idleRenderOutsideViewport())}layoutScheduled(t){this.It=3,this.element.layoutScheduleTime=t}layoutCanceled(){this.It=this.hasBeenMeasured()?2:1}startLayout(){if(this.Ct)return this.Ct;if(4==this.It)return s();if(5==this.It)return Promise.reject(this.wt);if(wt(0!=this.It),wt(this.isDisplayed()),3!=this.It){const t=It().createExpectedError("startLayout called but not LAYOUT_SCHEDULED","currently: ",this.It);return Un(t,this.element),Promise.reject(t)}if(this.Rt>0&&!this.element.isRelayoutNeeded())return this.It=4,s();this.Rt++,this.It=3,this.yt=new AbortController;const{signal:t}=this.yt,e=new Promise(((e,i)=>{ri(this.hostWin).mutate((()=>{let s;try{s=this.element.layoutCallback(t)}catch(t){i(t)}Promise.resolve(s).then(e,i)})),t.onabort=()=>i(Fn())})).then((()=>this.Ft(!0,t)),(e=>this.Ft(!1,t,e)));return this.Ct=e}Ft(t,e,i){if(this.yt=null,e.aborted){const t=It().createError("layoutComplete race");throw t.associatedElement=this.element,It().expectedError(Bn,t),Fn()}if(this.Dt&&(this.Dt(),this.Dt=null),this.Ct=null,this.It=t?4:5,this.wt=i,!t)return Promise.reject(i)}isLayoutPending(){return 4!=this.It&&5!=this.It}loadedOnce(){return this.element.R1()?this.element.whenLoaded():this.Nt}isInViewport(){return this.Lt&&this.$t(),this.Lt}setInViewport(t){this.Lt=t}unlayout(){0!=this.It&&1!=this.It&&2!=this.It&&(this.yt&&(this.yt.abort(),this.yt=null),this.setInViewport(!1),this.element.unlayoutCallback()&&(this.element.togglePlaceholder(!0),this.It=1,this.Rt=0,this.Ct=null))}getTaskId(t){return this.debugid+"#"+t}pause(){this.element.pause()}pauseOnRemove(){this.element.pause()}resume(){this.element.resume()}unload(){this.element.unmount()}disconnect(){delete this.element.__AMP__RESOURCE,this.element.disconnect(!0)}},qn="scheduler",Wn="250% 31.25%";function Yn(t){return re(t,qn,class{constructor(t){this.Bt=t;const{win:e}=t;this.Ht=new e.IntersectionObserver((t=>this.jt(t)),{root:Bt(e)?e.document:null,rootMargin:Wn}),this.zt=new Map,this.Gt=new Map,this.qt=[],this.Wt=!1,t.whenReady().then((()=>this.Kt())),this.Yt=t.onVisibilityChanged((()=>this.Jt()))}dispose(){this.Ht.disconnect(),this.Gt.clear(),this.Yt&&(this.Yt(),this.Yt=null)}scheduleAsap(t){this.Gt.set(t,{asap:!0,isIntersecting:!1}),this.Qt(t)}schedule(t){this.Gt.has(t)||(t.deferredMount()?(this.Gt.set(t,{asap:!1,isIntersecting:!1}),this.Ht.observe(t),this.zt.size>0&&this.zt.forEach(((e,i)=>{qt(i,t)&&e.observe(t)}))):this.Gt.set(t,{asap:!1,isIntersecting:!0}),this.Qt(t))}unschedule(t){this.Gt.has(t)&&(this.Gt.delete(t),this.Ht.unobserve(t),this.zt.size>0&&this.zt.forEach((e=>{e.unobserve(t)})),this.qt&&(I(this.qt,t),this.Kt()))}setContainer(t,e){if(this.zt.has(t))return;const{win:i}=this.Bt,s=new i.IntersectionObserver((t=>this.jt(t)),{root:e||t,rootMargin:Wn});this.zt.set(t,s),this.Gt.forEach((({asap:e},i)=>{!e&&qt(t,i)&&s.observe(i)}))}removeContainer(t){const e=this.zt.get(t);e&&(e.disconnect(),this.zt.delete(t))}Xt(){if(this.Bt.isReady()&&!this.Wt){this.Wt=!0;const{win:t}=this.Bt;t.setTimeout((()=>{this.Bt.signals().signal(ji)}),50)}}Jt(){const t=this.Bt.getVisibilityState();t!=$i&&t!=Hi&&t!=Ui&&t!=Fi||this.Gt.forEach(((t,e)=>this.Zt(e)))}Qt(t){const e=this.qt;e?(e.includes(t)||e.push(t),this.Kt()):this.Zt(t)}Kt(){const t=this.Bt.isReady(),e=this.qt;if(e)for(let i=0;i<e.length;i++){const s=e[i];(t||$t(s,this.Bt.getRootNode()))&&(e.splice(i--,1),this.Zt(s))}t&&(this.qt=null,this.Xt())}jt(t){for(let e=0;e<t.length;e++){const{isIntersecting:i,target:s}=t[e],n=s,r=this.Gt.get(n);if(!r)continue;const o=i||r.isIntersecting;o!==r.isIntersecting&&this.Gt.set(n,{asap:r.asap,isIntersecting:o}),o&&this.Zt(n)}}Zt(t){const e=this.qt,i=!(e&&e.includes(t)),{asap:s,isIntersecting:n}=this.Gt.get(t)||{asap:!1,isIntersecting:!1},r=this.Bt.getVisibilityState();if(!i||!s&&!n||!(r==$i||r==Hi||r==Ui&&t.prerenderAllowed()||r==Fi&&t.previewAllowed()))return;this.unschedule(t);const{win:o}=this.Bt;(s||t.getBuildPriority()<=0?o.setTimeout:o.requestIdleCallback||o.setTimeout)((()=>t.mountInternal()))}}),ae(t,qn)}var Kn=class{constructor(){this.ti=[]}peek(){const t=this.length;return t?this.ti[t-1].item:null}enqueue(t,e){if(isNaN(e))throw new Error("Priority must not be NaN.");const i=this.ii(e);this.ti.splice(i,0,{item:t,priority:e})}ii(t){let e=-1,i=0,s=this.length;for(;i<=s&&(e=Math.floor((i+s)/2),e!==this.length);)if(this.ti[e].priority<t)i=e+1;else{if(!(e>0&&this.ti[e-1].priority>=t))break;s=e-1}return e}forEach(t){let e=this.length;for(;e--;)t(this.ti[e].item)}dequeue(){const t=this.ti.pop();return t?t.item:null}get length(){return this.ti.length}},Qn=/nochunking=1/.test(self.location.hash),Jn=!1,Xn=s();function Zn(t,e,i){if(Qn)return void Xn.then(e);const s=(re(n=t.documentElement||t,"chunk",sr),ae(n,"chunk"));var n;s.runForStartup(e),i&&s.runForStartup((()=>{s.si=!0}))}var tr="not_run",er=class{constructor(t){this.state=tr,this.ei=t}ni(t){if("run"!=this.state){this.state="run";try{this.ei(t)}catch(t){throw this.ri(t),t}}}hi(){return this.ei.displayName||this.ei.name}ri(t){}oi(){return!1}ui(){return!1}},ir=class extends er{constructor(t,e,i){super(t),this.li=i}ri(t){un(self.document)}oi(){return this.ci()}ui(){return this.li.ai}ci(){return this.li.ampdoc.isVisible()}},sr=class{constructor(t){var e;this.ampdoc=t,this.i=t.win,this.di=new Kn,this.fi=this.pi.bind(this),this.mi=0,this._i=!(!this.i.navigator.scheduling||!this.i.navigator.scheduling.isInputPending),this.Ai=!1,this.si=this.i.document.documentElement.hasAttribute("i-amphtml-no-boilerplate"),this.i.addEventListener("message",(t=>{"amp-macro-task"==wi(t)&&this.pi(null)})),this.ai=!1,(e=t,le(e,"viewer")).then((()=>{this.ai=!0})),t.onVisibilityChanged((()=>{t.isVisible()&&this.gi()}))}run(t,e){const i=new er(t);this.Pi(i,e)}runForStartup(t){const e=new ir(t,this.i,this);this.Pi(e,Number.POSITIVE_INFINITY)}Pi(t,e){this.di.enqueue(t,e),this.gi()}vi(t){let e=this.di.peek();for(;e&&e.state!==tr;)this.di.dequeue(),e=this.di.peek();return e&&t&&this.di.dequeue(),e}pi(t){const e=this.vi(!0);if(!e)return this.Ai=!1,this.mi=0,!1;let i;try{i=Date.now(),e.ni(t)}finally{Xn.then().then().then().then().then().then().then().then().then((()=>{this.Ai=!1,this.mi+=Date.now()-i,this.gi()}))}return!0}Ei(t){if(!Jn&&this.si&&(this._i?this.i.navigator.scheduling.isInputPending():this.mi>5))return this.mi=0,void this.Ti();Xn.then((()=>{this.fi(t)}))}gi(){if(this.Ai)return;const t=this.vi();return t?t.oi()?(this.Ai=!0,void this.Ei(null)):void(t.ui()&&this.i.requestIdleCallback?function(t,e,i,s){const n=Date.now();t.requestIdleCallback((function e(i){if(i.timeRemaining()<15){const r=2e3-(Date.now()-n);r<=0||i.didTimeout?s(i):t.requestIdleCallback(e,{timeout:r})}else s(i)}),{timeout:2e3})}(this.i,0,0,this.fi):this.Ti()):void 0}Ti(){this.i.postMessage("amp-macro-task","*")}},nr="activate",rr=class{static R1(){return!1}static deferredMount(t){return!0}static prerenderAllowed(t){return!1}static previewAllowed(t){return this.prerenderAllowed(t)}static usesLoading(t){return!1}static createLoaderLogoCallback(t){return{}}static getBuildPriority(t){return 0}static getPreconnects(t){return null}static requiresShadowDom(){return!1}constructor(t){this.element=t,this.win=Tt(t),this.actionMap_=null,this.defaultActionAlias_=null}signals(){return this.element.signals()}getDefaultActionAlias(){return this.defaultActionAlias_}getLayoutPriority(){return 0}updateLayoutPriority(t){this.element.getResources().updateLayoutPriority(this.element,t)}getLayout(){return this.element.getLayout()}getLayoutBox(){return this.element.getLayoutBox()}getLayoutSize(){return this.element.getLayoutSize()}getAmpDoc(){return this.element.getAmpDoc()}getVsync(){return ri(this.win)}getConsentPolicy(){let t=null;return this.element.hasAttribute("data-block-on-consent")&&(t=this.element.getAttribute("data-block-on-consent")||"default"),t}isLayoutSupported(t){return t==Ps}isAlwaysFixed(){return!1}upgradeCallback(){return null}buildCallback(){}preconnectCallback(t){}attachedCallback(){}detachedCallback(){}setAsContainer(t){this.element.setAsContainerInternal(t)}removeAsContainer(){this.element.removeAsContainerInternal()}isBuildRenderBlocking(){return!1}createPlaceholderCallback(){return null}renderOutsideViewport(){return"inabox"==ct(this.win).runtime||3}idleRenderOutsideViewport(){return!1}ensureLoaded(){}setReadyState(t,e){this.element.setReadyStateInternal(t,e)}mountCallback(t){}unmountCallback(){}isRelayoutNeeded(){return!1}layoutCallback(){return s()}firstLayoutCompleted(){this.togglePlaceholder(!1)}pauseCallback(){}resumeCallback(){}unlayoutCallback(){return!1}unlayoutOnPause(){return!1}reconstructWhenReparented(){return!0}loadPromise(t){return Ti(t)}registerAction(t,e,i=2){or(this),this.actionMap_[t]={handler:e,minTrust:i}}registerDefaultAction(t,e="activate",i=2){wt(!this.defaultActionAlias_),this.registerAction(e,t,i),this.defaultActionAlias_=e}executeAction(t,e){let{method:i}=t;i===nr&&(i=this.defaultActionAlias_||i),or(this);const s=this.actionMap_[i],{tagName:n}=this.element;Et(s,`Method not found: ${i} in ${n}`);const{handler:r,minTrust:o}=s;if(t.satisfiesTrust(o))return r(t)}forwardEvents(t,e){const i=(y(t)?t:[t]).map((t=>Ii(e,t,(e=>{Gt(this.element,t,wi(e)||{})}))));return()=>i.forEach((t=>t()))}getPlaceholder(){return this.element.getPlaceholder()}togglePlaceholder(t){this.element.togglePlaceholder(t)}getFallback(){return this.element.getFallback()}toggleFallback(t){this.element.toggleFallback(t)}toggleLoading(t,e=!1){this.element.toggleLoading(t,e)}getOverflowElement(){return this.element.getOverflowElement()}renderStarted(){this.element.renderStarted()}getViewport(){return oi(this.getAmpDoc())}getIntersectionElementLayoutBox(){return this.getLayoutBox()}collapse(){Ke(this.getAmpDoc()).collapseElement(this.element)}attemptCollapse(){return Ke(this.getAmpDoc()).attemptCollapse(this.element)}forceChangeHeight(t){Ke(this.getAmpDoc()).forceChangeSize(this.element,t,void 0)}attemptChangeHeight(t){return Ke(this.getAmpDoc()).requestChangeSize(this.element,t,void 0)}attemptChangeSize(t,e,i){return Ke(this.getAmpDoc()).requestChangeSize(this.element,t,e,void 0,i)}measureElement(t){return Ke(this.getAmpDoc()).measureElement(t)}mutateElement(t,e){return this.measureMutateElement(null,t,e)}measureMutateElement(t,e,i){return Ke(this.getAmpDoc()).measureMutateElement(i||this.element,t,e)}mutateElementSkipRemeasure(t){return Ke(this.getAmpDoc()).mutateElement(this.element,t,!0)}collapsedCallback(t){}expand(){Ke(this.getAmpDoc()).expandElement(this.element)}mutatedAttributesCallback(t){}onLayoutMeasure(){}user(){return Pt(this.element)}getApi(){return this}};function or(t){t.actionMap_||(t.actionMap_=t.win.Object.create(null))}var hr=class extends rr{},ar="amp-",cr="send-positions",lr="position";function ur(t){try{return!!t.location.href&&(t.test||!0)}catch(t){return!1}}var dr,pr=Date.now(),mr={bubbles:!1},fr=()=>!0,gr=[],vr=new Set;function _r(t){return"placeholder"in t}function Ar(t){wt(!t.Ui)}var yr=new WeakMap;function Pr(t){return t.__AMP_EXTENDED_ELEMENTS||(t.__AMP_EXTENDED_ELEMENTS={}),t.__AMP_EXTENDED_ELEMENTS}function br(t,e,i){const s=Pr(t);if(s[e]){if(s[e]!=i){Et(s[e]==hr,"%s is already registered. The script tag for %s is likely included twice in the page.",e,e),s[e]=i;for(let s=0;s<gr.length;s++){const n=gr[s];n.tagName.toLowerCase()==e&&n.ownerDocument.defaultView==t&&(Ir(n,i),gr.splice(s--,1))}}}else Sr(t,e,i)}function Ir(t,e){try{t.upgrade(e)}catch(e){Un(e,t)}}function wr(t){(function(t){if(!t)return[];const e=t.querySelectorAll("script[custom-element],script[custom-template]"),i=[];for(let t=0;t<e.length;t++){const s=e[t],n=s.getAttribute("custom-element")||s.getAttribute("custom-template"),r=je(s.src);n&&r&&i.push({script:s,extensionId:n,extensionVersion:r.extensionVersion})}return i})(t.getHeadNode()).forEach((({extensionId:e,extensionVersion:i,script:s})=>{t.declareExtension(e,i),s.addEventListener("error",(()=>function(t){vr.add(t||"*");for(const e of gr)null!=t&&e.tagName.toLowerCase()!==t||e.markUnresolved()}(e))),Er(t.win,e)})),t.isBodyAvailable()&&t.setExtensionsKnown()}function Er(t,e){Pr(t)[e]||Sr(t,e,hr)}function Tr(t,e,i){Sr(e,i,Pr(t)[i]||hr)}function Sr(t,e,i){Pr(t)[e]=i;const s=function(t,e){const i=function(t,e){if(t.__AMP_BASE_CE_CLASS)return t.__AMP_BASE_CE_CLASS;const i=t.HTMLElement;return t.__AMP_BASE_CE_CLASS=class extends i{constructor(){super(),this.createdCallback()}createdCallback(){this.Ii=!1,this.Mi=!1,this.Ri=null,this.yi=!1,this.wi=null,this.bi=null,this.Vi="upgrading",this.everAttached=!1,this.Bt=null,this.Pt=null,this.Si=Ps,this.Rt=0,this.xi=!1,this.warnOnMissingOverflow=!0,this.sizerElement=void 0,this.Oi=void 0,this.layoutScheduleTime=void 0;const e=this;let i=t.__AMP_EXTENDED_ELEMENTS&&t.__AMP_EXTENDED_ELEMENTS[this.localName];this.Ci=i===hr?null:i||null,this.Ci||gr.push(this),this.ki=null,this.Ni=1,this.Di=0,this.Li=void 0,this.Ui=void 0,this.X=new Wi,this.Ci&&this.X.signal(Hs);const s=he(t,"performance");this.$i=s&&s.isPerformanceTrackingOn(),this.Fi=null,e.__AMP_UPG_RES&&(e.__AMP_UPG_RES(e),delete e.__AMP_UPG_RES,delete e.__AMP_UPG_PRM)}get readyState(){return this.Vi}signals(){return this.X}getAmpDoc(){return wt(this.Bt),this.Bt}getResources(){return wt(this.Pt),this.Pt}isUpgraded(){return 2==this.Ni}whenUpgraded(){return this.X.whenSignal(Bs)}upgrade(t){this.Ui||1==this.Ni&&(this.Ci=t,this.X.signal(Hs),this.everAttached&&this.Bi())}markUnresolved(){this.Ci||this.classList.add("amp-unresolved","i-amphtml-unresolved")}getUpgradeDelayMs(){return this.Di}Hi(e,i){this.ki=e,this.Di=t.Date.now()-i,this.Ni=2,this.setReadyStateInternal(ci),this.classList.remove("amp-unresolved","i-amphtml-unresolved"),this.ji(),this.dispatchCustomEventForTesting(Us),this.R1()||this.getResources().upgraded(this),this.X.signal(Bs)}ji(){this.Si!=Ps&&this.ki&&!this.ki.isLayoutSupported(this.Si)&&(Et(this.getAttribute("layout"),"The element did not specify a layout attribute. Check https://amp.dev/documentation/guides-and-tutorials/develop/style_and_layout/control_layout and the respective element documentation for details."),Et(!1,`Layout not supported: ${this.Si}`))}getBuildPriority(){return this.Ci?this.Ci.getBuildPriority(this):3}getLayoutPriority(){return this.ki?this.ki.getLayoutPriority():3}getDefaultActionAlias(){return wt(this.isUpgraded()),this.ki.getDefaultActionAlias()}isBuilding(){return!!this.Ri}isBuilt(){return this.Ii}whenBuilt(){return this.X.whenSignal(Gs)}buildInternal(){if(Ar(this),wt(this.Ci),this.Ri)return this.Ri;this.setReadyStateInternal(ci);const t=this.zi();this.Gi();const e=t.then((()=>{const t=this.qi(),e=t?null:this.Wi();if(t||e)return Le(this,"consentPolicyManager","amp-consent").then((i=>!i||(t?i.whenPolicyUnblock(t):i.whenPurposesUnblock(e)))).then((t=>{if(!t)throw new Error(Ln)}))})).then((()=>wt(this.ki).buildCallback()));return this.Ri=e.then((()=>{if(this.Ii=!0,this.classList.add("i-amphtml-built"),this.classList.remove("i-amphtml-notbuilt","amp-notbuilt"),this.X.signal(Gs),this.R1()?this.setReadyStateInternal(this.Vi!=ci?this.Vi:li):(this.setReadyStateInternal(ui),this.preconnect(!1)),this.Mi&&this.Ki(),this.Li&&ti(Tt(this)).delay(this.Yi.bind(this),1),!this.getPlaceholder()){const t=this.createPlaceholder();t&&this.appendChild(t)}}),(t=>{throw this.X.rejectSignal(Gs,t),this.R1()&&this.setReadyStateInternal(pi,t),$n(t)||Un(t,this),t}))}build(){return this.Ri?this.Ri:this.X.whenSignal(Hs).then((()=>(this.R1()&&Yn(this.getAmpDoc()).scheduleAsap(this),this.whenBuilt())))}mountInternal(){if(this.wi)return this.wi;this.bi=this.bi||new AbortController;const{signal:t}=this.bi;return this.wi=this.buildInternal().then((()=>{if(wt(this.R1()),t.aborted)return;this.setReadyStateInternal(this.Vi!=li?this.Vi:this.Ci.usesLoading(this)?ui:li),this.yi=!0;const e=this.ki.mountCallback(t);return!!e&&e.then(fr)})).then((e=>{if(this.bi=null,t.aborted)throw Fn();this.X.signal(qs),this.Ci.usesLoading(this)&&!e||this.setReadyStateInternal(di)})).catch((t=>{var e;throw this.bi=null,(e=t)&&("string"==typeof e?e.startsWith(Nn):"string"==typeof e.message&&e.message.startsWith(Nn))?this.wi=null:(this.X.rejectSignal(qs,t),this.setReadyStateInternal(pi,t)),t}))}mount(){if(this.wi)return this.wi;this.bi=this.bi||new AbortController;const{signal:t}=this.bi;return this.X.whenSignal(Hs).then((()=>{if(!this.R1())return this.whenBuilt();if(t.aborted)throw Fn();return Yn(this.getAmpDoc()).scheduleAsap(this),this.whenMounted()}))}unmount(){this.Mi&&this.pause(),this.R1()?(this.bi&&(this.bi.abort(),this.bi=null),Yn(this.getAmpDoc()).unschedule(this),this.yi&&this.ki.unmountCallback(),this.yi=!1,this.wi=null,this.Ji(),this.Mi&&this.Bi(!0)):this.Qi()}whenMounted(){return this.X.whenSignal(qs)}whenLoaded(){return this.X.whenSignal(Ks)}ensureLoaded(t){return this.mount().then((()=>{if(this.R1())return this.Ci.usesLoading(this)&&this.ki.ensureLoaded(),this.whenLoaded();const e=this.Xi();return e.whenBuilt().then((()=>{if(4!=e.getState()&&((3!=e.getState()||e.isMeasureRequested())&&e.measure(),e.isDisplayed()))return this.getResources().scheduleLayoutOrPreload(e,!0,t,!0),this.whenLoaded()}))}))}setAsContainerInternal(t){Yn(this.getAmpDoc()).setContainer(this,t)}removeAsContainerInternal(){Yn(this.getAmpDoc()).removeContainer(this)}setReadyStateInternal(t,e){if(t!==this.Vi&&(this.Vi=t,this.R1()))switch(t){case ui:return this.X.signal(Ws),this.X.reset(Qs),this.X.reset(Ks),this.classList.add("i-amphtml-layout"),this.toggleLoading(!0),void this.dispatchCustomEventForTesting(Fs);case di:return this.X.signal(Ws),this.X.signal(Ks),this.X.reset(Qs),this.classList.add("i-amphtml-layout"),this.toggleLoading(!1),Gt(this,"load",null,mr),void this.dispatchCustomEventForTesting($s);case pi:return this.X.rejectSignal(Ks,e),this.toggleLoading(!1),void Gt(this,"error",e,mr)}}preconnect(t){wt(this.isUpgraded()),t?this.ki.preconnectCallback(t):Zn(this.getAmpDoc(),(()=>{this.ownerDocument&&this.ownerDocument.defaultView&&this.ki.preconnectCallback(t)}))}R1(){return!!this.Ci&&this.Ci.R1()}deferredMount(){return!!this.Ci&&this.Ci.deferredMount(this)}isAlwaysFixed(){return!!this.ki&&this.ki.isAlwaysFixed()}updateLayoutBox(t,e=!1){this.isBuilt()&&this.onMeasure(e)}onMeasure(){wt(this.isBuilt());try{this.ki.onLayoutMeasure()}catch(t){Un(t,this)}}Gi(){var t;return void 0!==this.sizerElement||this.Si!==ws&&this.Si!==Rs||(this.sizerElement=this.querySelector("i-amphtml-sizer"),null===(t=this.sizerElement)||void 0===t||t.setAttribute("slot","i-amphtml-svc")),this.sizerElement||null}Zi(t){if(this.Si!==ws)if(this.Si!==Rs);else{const e=t.querySelector(".i-amphtml-intrinsic-sizer");if(!e)return;e.setAttribute("src","")}else Zi(t,"paddingTop","0")}ts(){const t=this.hasAttribute("media")||this.hasAttribute("sizes")&&!this.hasAttribute("disable-inline-width")||this.hasAttribute("heights"),e=!!this.Fi,i=this.ownerDocument.defaultView;t!=e&&i&&(t?(this.Fi=new class{constructor(t,e){this.i=t,this.U=e,this.ss={},this.es=null}start(){this.es=this.ss,this.ss={}}resolveMatchQuery(t){return"1"===this.ns(t,Js,"1")}resolveListQuery(t){return this.ns(t,Xs,"")}complete(){for(const t in this.es)t in this.ss||Zs(this.es[t],this.U,!1);this.es=null}dispose(){for(const t in this.ss)Zs(this.ss[t],this.U,!1);this.ss={}}ns(t,e,i){if(!t.trim())return i;let s=this.ss[t];return s||(V(this.es),s=this.es[t]),s||(s=e(this.i,t),Zs(s,this.U,!0)),this.ss[t]=s,function(t){for(let e=0;e<t.length;e++){const{query:i,value:s}=t[e];if(!i||i.matches)return s}return""}(s)}}(i,(()=>this.rs())),this.rs()):this.hs())}hs(){this.Fi&&(this.Fi.dispose(),this.Fi=null)}rs(){const t=this.Fi;if(!t)return;t.start();const e=this.getAttribute("media")||null,i=!e||t.resolveMatchQuery(e);this.classList.toggle("i-amphtml-hidden-by-media-query",!i);const s=this.hasAttribute("disable-inline-width")?null:this.getAttribute("sizes");s&&Zi(this,"width",t.resolveListQuery(s));const n=this.Si===ws?this.getAttribute("heights"):null;if(n){const e=this.Gi();e&&Zi(e,"paddingTop",t.resolveListQuery(n))}t.complete(),this.Xi().requestMeasure()}applySize(t,e,i){const s=this.Gi();s&&(this.sizerElement=null,this.Zi(s),this.os((()=>{s&&Dt(s)}))),void 0!==t&&Zi(this,"height",t,"px"),void 0!==e&&Zi(this,"width",e,"px"),i&&(null!=i.top&&Zi(this,"marginTop",i.top,"px"),null!=i.right&&Zi(this,"marginRight",i.right,"px"),null!=i.bottom&&Zi(this,"marginBottom",i.bottom,"px"),null!=i.left&&Zi(this,"marginLeft",i.left,"px")),this.us()&&this.ls(),Gt(this,"amp:size-changed")}connectedCallback(){if(function(){if(void 0===dr){const t=self.document.createElement("template");dr="content"in t}return dr}()||void 0!==this.Ui||(this.Ui=!!kt(this,"template")),!this.Ui&&!this.Mi&&Ut(this)){if(this.Mi=!0,this.everAttached||this.classList.add("i-amphtml-element","i-amphtml-notbuilt","amp-notbuilt"),!this.Bt){const t=Tt(this),i=He(t).getAmpDoc(this);this.Bt=i,e(i,this,this.Ci)}if(this.Pt||(this.Pt=Ze(this.Bt)),this.getResources().add(this),this.everAttached){const t=this.reconstructWhenReparented();t&&this.Ji(),this.isUpgraded()&&(t&&!this.R1()&&this.getResources().upgraded(this),this.Ki(),this.dispatchCustomEventForTesting(Us)),this.Ci&&this.R1()&&this.Bi()}else{this.everAttached=!0;try{this.Si=function(t){const e=t.getAttribute("i-amphtml-layout");if(e){const s=ks(e);var i;return V(s),s!=ws&&s!=Rs||!t.firstElementChild?s==Ps&&es(t,!1):(t.sizerElement=t.querySelector("i-amphtml-sizer")||void 0,null===(i=t.sizerElement)||void 0===i||i.setAttribute("slot","i-amphtml-svc")),s}const{height:s,layout:n,width:r}=rn(t);if(t.classList.add(js(n)),Vs(n)&&t.classList.add("i-amphtml-layout-size-defined"),n==Ps)es(t,!1);else if(n==bs)ts(t,{width:C(r),height:C(s)});else if(n==Is)Zi(t,"height",C(s));else if(n==ws){const e=t.ownerDocument.createElement("i-amphtml-sizer");e.setAttribute("slot","i-amphtml-svc");const i=Ns(s),n=Ns(r);N(i),N(n),ts(e,{paddingTop:i/n*100+"%"}),t.insertBefore(e,t.firstChild),t.sizerElement=e}else if(n==Rs){const e=tn(t)(sn),i=e.firstElementChild;O(i),i.setAttribute("src",`data:image/svg+xml;charset=utf-8,<svg height="${s}" width="${r}" xmlns="http://www.w3.org/2000/svg" version="1.1"/>`),t.insertBefore(e,t.firstChild),t.sizerElement=e}else n==Ts||n==Es||(n==Ss?(r&&Zi(t,"width",r),s&&Zi(t,"height",s)):n==Ms&&(t.classList.add("i-amphtml-layout-awaiting-size"),r&&Zi(t,"width",r),Zi(t,"height",0)));return t.setAttribute("i-amphtml-layout",n),n}(this),this.ts()}catch(t){Un(t,this)}this.Ci?this.Bi():(vr.has("*")||vr.has(this.tagName.toLowerCase()))&&this.markUnresolved(),this.isUpgraded()||this.dispatchCustomEventForTesting("amp:stubbed")}this.toggleLoading(!0)}}us(){return this.classList.contains("i-amphtml-layout-awaiting-size")}ls(){this.classList.remove("i-amphtml-layout-awaiting-size")}Bi(t){if(this.R1()){if(!this.wi)if(Yn(this.getAmpDoc()).schedule(this),this.classList.remove("amp-unresolved","i-amphtml-unresolved"),this.Ri)this.setReadyStateInternal(this.Ci&&this.Ci.usesLoading(this)?ui:li);else if(this.setReadyStateInternal(ci),!t){const t=this.Ci.getPreconnects(this);if(t&&t.length>0){const e=this.getAmpDoc();Zn(e,(()=>{const{win:i}=e;if(!i)return;const s=Xe(i);t.forEach((t=>s.url(e,t,!1)))}))}}}else this.cs()}cs(){if(this.Ui)return;if(1!=this.Ni)return;const e=new(wt(this.Ci))(this);this.Ni=4;const i=t.Date.now(),s=e.upgradeCallback();if(s){if("function"==typeof s.then)return s.then((t=>{this.Hi(t||e,i)})).catch((t=>{this.Ni=3,c(t)}));this.Hi(s,i)}else this.Hi(e,i)}disconnectedCallback(){this.disconnect(!1)}Ki(){this.Ii&&this.ki.attachedCallback()}disconnect(t){!this.Ui&&this.Mi&&(!t&&Ut(this)||(t&&this.classList.remove("i-amphtml-element"),this.Mi=!1,this.getResources().remove(this),this.ki&&this.ki.detachedCallback(),this.R1()&&this.unmount(),this.toggleLoading(!1),this.hs()))}dispatchCustomEventForTesting(t,e){}prerenderAllowed(){return!this.hasAttribute("noprerender")&&!!this.Ci&&this.Ci.prerenderAllowed(this)}previewAllowed(){return!!this.Ci&&this.Ci.previewAllowed(this)}isBuildRenderBlocking(){return!!this.ki&&this.ki.isBuildRenderBlocking()}createPlaceholder(){return this.ki?this.ki.createPlaceholderCallback():null}createLoaderLogo(){return this.Ci?this.Ci.createLoaderLogoCallback(this):{}}renderOutsideViewport(){return!!this.ki&&this.ki.renderOutsideViewport()}idleRenderOutsideViewport(){return!!this.ki&&this.ki.idleRenderOutsideViewport()}getLayoutBox(){return this.Xi().getLayoutBox()}getLayoutSize(){return this.Xi().getLayoutSize()}getOwner(){return this.Xi().getOwner()}getIntersectionChangeEntry(){const t=this.ki?this.ki.getIntersectionElementLayoutBox():this.getLayoutBox(),e=this.getOwner(),i=oi(this.getAmpDoc()).getRect();return function(t,e,i){const s=function(t){let e=-1/0,i=1/0,s=-1/0,n=1/0;for(let t=0;t<arguments.length;t++){const r=arguments[t];if(r&&(e=Math.max(e,r.left),i=Math.min(i,r.left+r.width),s=Math.max(s,r.top),n=Math.min(n,r.top+r.height),i<e||n<s))return null}return i==1/0?null:Kt(e,s,i-e,n-s)}(t,e,i)||Kt(0,0,0,0);return function(t,e,i,s){let n=t,r=e;return e&&(r=r,i=Jt(i,-e.left,-e.top),n=Jt(n,-e.left,-e.top),r=Jt(r,-e.left,-e.top)),{time:"undefined"!=typeof performance&&performance.now?performance.now():Date.now()-pr,rootBounds:r,boundingClientRect:n,intersectionRect:i,intersectionRatio:s}}(t,i,s,function(t,e){const i=t.width*t.height,s=e.width*e.height;return 0===s?0:i/s}(s,t))}(t,e&&e.getLayoutBox(),i)}Xi(){return this.getResources().getResourceForElement(this)}getResourceId(){return this.Xi().getId()}isRelayoutNeeded(){return!!this.ki&&this.ki.isRelayoutNeeded()}getImpl(t=!0){return(t?this.build():this.zi()).then((()=>this.ki))}zi(){return this.X.whenSignal(Hs).then((()=>(this.cs(),this.whenUpgraded())))}getApi(){return this.getImpl().then((t=>t.getApi()))}getLayout(){return this.Si}layoutCallback(t){if(Ar(this),wt(this.isBuilt()),t.aborted)return Promise.reject(Fn());this.dispatchCustomEventForTesting(Fs);const e=0==this.Rt;this.X.reset(Qs),e&&this.X.signal(Ws),this.toggleLoading(!0);const i=r((()=>this.ki.layoutCallback()));return this.preconnect(!0),this.classList.add("i-amphtml-layout"),i.then((()=>{if(t.aborted)throw Fn();e&&this.X.signal(Ks),this.setReadyStateInternal(di),this.Rt++,this.toggleLoading(!1),this.xi||(this.ki.firstLayoutCompleted(),this.xi=!0,this.dispatchCustomEventForTesting($s))}),(i=>{if(t.aborted)throw Fn();throw e&&this.X.rejectSignal(Ks,i),this.setReadyStateInternal(pi,i),this.Rt++,this.toggleLoading(!1),i}))}pause(){this.isBuilt()&&(this.ki.pauseCallback(),!this.R1()&&this.ki.unlayoutOnPause()&&this.Qi())}resume(){this.isBuilt()&&this.ki.resumeCallback()}unlayoutCallback(){if(Ar(this),!this.isBuilt())return!1;this.X.signal(Qs);const t=this.ki.unlayoutCallback();return t&&this.Ji(),this.dispatchCustomEventForTesting("amp:unload"),t}Qi(){this.Xi().unlayout(),this.Mi&&this.Pt&&this.Pt.schedulePass()}Ji(){this.Rt=0,this.xi=!1,this.X.reset(qs),this.X.reset(Ys),this.X.reset(Ws),this.X.reset(Ks),this.X.reset("ini-load")}reconstructWhenReparented(){return!!this.ki&&this.ki.reconstructWhenReparented()}collapse(){this.ki&&this.ki.collapse()}collapsedCallback(t){this.ki&&this.ki.collapsedCallback(t)}expand(){this.ki&&this.ki.expand()}mutatedAttributesCallback(t){this.ki?this.ki.mutatedAttributesCallback(t):this.R1()&&Yn(this).scheduleAsap(this)}enqueAction(t){Ar(this),this.isBuilt()?this.ds(t,!1):(void 0===this.Li&&(this.Li=[]),wt(this.Li).push(t),this.build())}Yi(){if(!this.Li)return;const t=wt(this.Li);this.Li=null,t.forEach((t=>{this.ds(t,!0)}))}ds(t,e){try{this.ki.executeAction(t,e)}catch(e){c("Action execution failed:",e,t.node.tagName,t.method)}}qi(){let t=this.getAttribute("data-block-on-consent");if(null===t){if(!function(t){let e=t.getAmpDoc().getMetaByName("amp-consent-blocking");return!!e&&(e=e.toUpperCase().replace(/\s+/g,""),e.split(",").includes(t.tagName))}(this))return null;t="default",this.setAttribute("data-block-on-consent",t)}return""==t||"default"==t?wt(this.ki).getConsentPolicy():t}Wi(){var t;const e=this.getAttribute("data-block-on-consent-purposes")||null;return null==e||null===(t=e.replace(/\s+/g,""))||void 0===t?void 0:t.split(",")}getPlaceholder(){return jt(this,(t=>t.hasAttribute("placeholder")&&!_r(t)))}togglePlaceholder(t){if(Ar(this),t){const t=this.getPlaceholder();t&&t.classList.remove("amp-hidden")}else{const t=(Rt("placeholder"),this.querySelectorAll(St("> [placeholder]",":scope")));for(let e=0;e<t.length;e++)_r(t[e])||t[e].classList.add("amp-hidden")}}getFallback(){return Vt(this,"fallback")}toggleFallback(t){Ar(this);const e=this.Xi().getState();if((this.R1()||!t||0!=e&&1!=e&&2!=e)&&(this.classList.toggle("amp-notsupported",t),1==t)){const t=this.getFallback();t&&(i=this.getAmpDoc(),ae(i,"owners")).scheduleLayout(this,t)}var i}renderStarted(){this.X.signal(Ys),this.togglePlaceholder(!1),this.toggleLoading(!1)}fs(t){const e=this.Rt>0||this.X.get(Ys);return!(this.Si==Ps||this.hasAttribute("noloading")||e&&!t||!function(t){const e=t.tagName.toUpperCase();return"AMP-AD"===(i=e)||"AMP-ANIM"===i||"AMP-EMBED"===i||"AMP-FACEBOOK"===i||"AMP-FACEBOOK-COMMENTS"===i||"AMP-FACEBOOK-PAGE"===i||"AMP-GOOGLE-DOCUMENT-EMBED"===i||"AMP-IFRAME"===i||"AMP-IMG"===i||"AMP-INSTAGRAM"===i||"AMP-LIST"===i||"AMP-PINTEREST"===i||"AMP-PLAYBUZZ"===i||"AMP-RENDER"===i||"AMP-TIKTOK"===i||"AMP-TWITTER"===i||function(t){return"AMP-VIDEO"!=t&&xs.test(t)}(e);var i}(this)||Ot(this))}toggleLoading(t,e=!1){if(!this.ownerDocument||!this.ownerDocument.defaultView)return;const i=ce(this.getAmpDoc(),"loadingIndicator");i&&((t=t&&this.fs(e))?i.track(this):i.untrack(this))}getOverflowElement(){return void 0===this.Oi&&(this.Oi=Vt(this,"overflow"),this.Oi&&(this.Oi.hasAttribute("tabindex")||this.Oi.setAttribute("tabindex","0"),this.Oi.hasAttribute("role")||this.Oi.setAttribute("role","button"))),this.Oi}overflowCallback(t,e,i){this.getOverflowElement(),this.Oi?(this.Oi.classList.toggle("amp-visible",t),this.Oi.onclick=t?()=>{const t=Ke(this.getAmpDoc());t.forceChangeSize(this,e,i),t.mutateElement(this,(()=>{this.overflowCallback(!1,e,i)}))}:null):t&&this.warnOnMissingOverflow}os(t,e,i=!1){this.Bt?Ke(this.getAmpDoc()).mutateElement(e||this,t,i):t()}},t.__AMP_BASE_CE_CLASS}(t,e);class s extends i{adoptedCallback(){Object.getPrototypeOf(this)!==n&&Object.setPrototypeOf(this,n)}}const n=s.prototype;return s}(t,Mr);t.customElements.define(e,s)}function Mr(t,e,i){yr.has(t)||(yr.set(t,!0),wr(t));const s=e.localName;i||t.declaresExtension(s)||We(t.win).installExtensionForDoc(t,s,"0.1")}var Rr="amp-img",xr=["alt","aria-describedby","aria-label","aria-labelledby","crossorigin","referrerpolicy","title","importance","sizes","srcset","src"],kr=class extends rr{static R1(){return!1}static prerenderAllowed(){return!0}static usesLoading(){return!0}static getPreconnects(t){const e=t.getAttribute("src");if(e)return[e];const i=t.getAttribute("srcset");if(i){const t=/\S+/.exec(i);if(t)return[t[0]]}return null}constructor(t){super(t),this.ps=!0,this._s=null,this.As=null,this.gs=null,this.Ps=0}mutatedAttributesCallback(t){if(this._s){const e=xr.filter((e=>void 0!==t[e]));t.src&&!t.srcset&&this.element.hasAttribute("srcset")&&(this.element.removeAttribute("srcset"),e.push("srcset"),this.user().warn(Rr,"Removed [srcset] since [src] was mutated. Recommend adding a [srcset] binding to support responsive images.",this.element)),Ds(e,this.element,this._s,!0),this.propagateDataset(this._s),kr.R1()&&!this._s.complete&&this.setReadyState(ui)}}preconnectCallback(t){const e=this.element.getAttribute("src");if(e)Xe(this.win).url(this.getAmpDoc(),e,t);else{const e=this.element.getAttribute("srcset");if(!e)return;const i=/\S+/.exec(e);i&&Xe(this.win).url(this.getAmpDoc(),i[0],t)}}isLayoutSupported(t){return Vs(t)}vs(){if(this._s)return this._s;this.ps=!this.element.hasAttribute("fallback");const t=Wt(this.element);var e,i;return t&&(this._s=xt(this.element,"> img:not([placeholder])")),this._s=this._s||new Image,this._s.setAttribute("decoding","async"),this.element.id&&this._s.setAttribute("amp-img-id",this.element.id),"img"==this.element.getAttribute("role")&&(this.element.removeAttribute("role"),this.user().error(Rr,"Setting role=img on amp-img elements breaks screen readers please just set alt or ARIA attributes, they will be correctly propagated for the underlying <img> element.")),this.Es(!0),Ds(xr,this.element,this._s),this.propagateDataset(this._s),Ls(this._s,!0),e=this.element,i=this._s,e.hasAttribute("object-fit")&&Zi(i,"object-fit",e.getAttribute("object-fit")),e.hasAttribute("object-position")&&Zi(i,"object-position",e.getAttribute("object-position")),t||this.element.appendChild(this._s),this._s}Es(t){if(!this._s)return;if(this.element.hasAttribute("i-amphtml-ssr"))return;if(this.element.hasAttribute("sizes")||this._s.hasAttribute("sizes"))return;const e=this.element.getAttribute("srcset");if(!e||/[0-9]+x(?:,|$)/.test(e))return;const{width:i}=this.element.getLayoutSize();if(!this.Ts(i))return;const s=this.getViewport().getWidth(),n=`(max-width: ${s}px) ${i}px, `;let r=i+"px";if(this.getLayout()!==bs){const t=Math.round(100*i/s);r=Math.max(t,100)+"vw"}const o=n+r;t?this._s.setAttribute("sizes",o):this.mutateElement((()=>{this._s.setAttribute("sizes",o)})),this.Ps=i}Ts(t){return!this._s.hasAttribute("sizes")||t>this.Ps}reconstructWhenReparented(){return!1}mountCallback(){const t=!!this._s,e=this.vs();t||(Ii(e,"load",(()=>{this.setReadyState(di),this.firstLayoutCompleted(),this.Is()})),Ii(e,"error",(t=>{this.setReadyState(pi,t),this.Ms()}))),e.complete?(this.setReadyState(di),this.firstLayoutCompleted(),this.Is()):this.setReadyState(ui)}unmountCallback(){const t=this._s;t&&!t.complete&&(t.src="",Dt(t),this._s=null)}ensureLoaded(){this._s.loading="eager"}layoutCallback(){this.vs();const t=this._s;this.As=Ii(t,"load",(()=>this.Is())),this.gs=Ii(t,"error",(()=>this.Ms()));const{width:e}=this.element.getLayoutSize();return e<=0?s():this.loadPromise(t)}unlayoutCallback(){if(kr.R1())return;this.gs&&(this.gs(),this.gs=null),this.As&&(this.As(),this.As=null);const t=this._s;return t&&!t.complete&&(t.src="",Dt(t),this._s=null),!0}firstLayoutCompleted(){const t=this.getPlaceholder();t&&t.classList.contains("i-amphtml-blurry-placeholder")?Xi(t,{"opacity":0}):this.togglePlaceholder(!1)}Is(){!this.ps&&this._s.classList.contains("i-amphtml-ghost")&&(this._s.classList.remove("i-amphtml-ghost"),this.toggleFallback(!1))}Ms(){this.ps&&(this._s.classList.add("i-amphtml-ghost"),this.toggleFallback(!0),this.togglePlaceholder(!1),this.ps=!1)}propagateDataset(t){for(const e in t.dataset)e in this.element.dataset||delete t.dataset[e];for(const e in this.element.dataset)e.startsWith("ampBind")&&"ampBind"!==e||t.dataset[e]!==this.element.dataset[e]&&(t.dataset[e]=this.element.dataset[e])}},jr=class extends rr{static prerenderAllowed(){return!0}isLayoutSupported(t){return t==Es||Vs(t)}buildCallback(){!function(t){if(Wt(t))return;const e=function(t){var e;return ks(null!==(e=t.getAttribute("layout"))&&void 0!==e?e:"")||rn(t).layout}(t);if(e==Es)return;const i=t.ownerDocument.createElement("div");Ls(i),function(t){return function(t,e){const i=[];for(let e=t.firstChild;e;e=e.nextSibling)!Ot(e)&&i.push(e);return i}(t)}(t).forEach((t=>{i.appendChild(t)})),t.appendChild(i)}(this.element)}};function Vr(t,e,i=!1){const s=new(ls.getImage(t));return i&&(s.referrerPolicy="no-referrer"),s.src=e,s}var Or="amp-pixel",Cr=class extends rr{constructor(t){super(t),this.Rs=null}isLayoutSupported(t){return!0}buildCallback(){this.element.setAttribute("aria-hidden","true"),this.ys=this.element.getAttribute("referrerpolicy"),this.ys&&Et("no-referrer"==this.ys,`${Or}: invalid "referrerpolicy" value "${this.ys}". Only "no-referrer" is supported`),this.element.hasAttribute("i-amphtml-ssr")&&this.element.querySelector("img")||this.getAmpDoc().whenFirstVisible().then(this.ws.bind(this))}ws(){if(this.Rs)return It().error(Or,"duplicate pixel"),this.Rs;this.Rs=ti(this.win).promise(1).then((()=>{const t=this.element.getAttribute("src");if(t)return ei(this.element).expandUrlAsync(this.bs(t)).then((t=>{if(this.win)return function(t,e,i){return i&&"no-referrer"!==i&&Pt().error("pixel","Unsupported referrerPolicy: %s",i),"no-referrer"===i?function(t,e){if("referrerPolicy"in Image.prototype)return Vr(t,e,!0);{const i=zt(t.document,"iframe",{"src":"about:blank","style":"display:none"});return i.onload=()=>{Vr(i.contentWindow,e)},t.document.body.appendChild(i),i}}(t,e):Vr(t,e)}(this.win,t,this.ys)}))}))}bs(t){return Et(/^(https\:\/\/|\/\/)/i.test(t),'The <amp-pixel> src attribute must start with "https://" or "//". Invalid value: '+t),t}},Nr=class{constructor(t,e,i){this.Vs=ti(t),this.Ss=e,this.xs=i||0,this.Os=-1,this.Cs=0,this.ks=!1,this.Ns=()=>{this.Ds()}}isPending(){return-1!=this.Os}schedule(t){let e=t||this.xs;this.ks&&e<10&&(e=10);const i=Date.now()+e;return(!this.isPending()||i-this.Cs<-10)&&(this.cancel(),this.Cs=i,this.Os=this.Vs.delay(this.Ns,e),!0)}Ds(){this.Os=-1,this.Cs=0,this.ks=!0,this.Ss(),this.ks=!1}cancel(){this.isPending()&&(this.Vs.cancel(this.Os),this.Os=-1)}};var Lr="Action",Dr="__AMP_ACTION_MAP__"+Math.random(),zr="__AMP_ACTION_QUEUE__",Ur="__AMP_ACTION_HANDLER__",Fr={"form":["submit","clear"]},$r=[{tagOrTarget:"AMP",method:"setState"},{tagOrTarget:"*",method:"focus"},{tagOrTarget:"*",method:"hide"},{tagOrTarget:"*",method:"show"},{tagOrTarget:"*",method:"toggleClass"},{tagOrTarget:"*",method:"toggleChecked"},{tagOrTarget:"*",method:"toggleVisibility"}],Hr={"button":!0,"checkbox":!0,"link":!0,"listbox":!0,"menuitem":!0,"menuitemcheckbox":!0,"menuitemradio":!0,"option":!0,"radio":!0,"scrollbar":!0,"slider":!0,"spinbutton":!0,"switch":!0,"tab":!0,"treeitem":!0},Br=class{constructor(t,e,i,s,n,r,o,h="?",a=null,c=Math.random()){this.node=t,this.method=e,this.args=i,this.source=s,this.caller=n,this.event=r,this.trust=o,this.actionEventType=h,this.tagOrTarget=a||t.tagName,this.sequenceId=c}satisfiesTrust(t){if(!T(this.trust))return It().error(Lr,`Invalid trust for '${this.method}': ${this.trust}`),!1;if(this.trust<t){const t=function(t){switch(t){case 1:return"low";case 3:return"high";default:return V(2===t),"default"}}(this.trust);return Pt().error(Lr,`"${this.actionEventType}" event with "${t}" trust is not allowed to invoke "${this.tagOrTarget.toLowerCase()}.${this.method}".`),!1}return!0}};function Gr(t){return"amp-"===t.substring(0,4)}var qr=class{constructor(t){this.detail=null,function(t,e){const i=e||m();for(const e in t){const s=t[e];i[e]="function"==typeof s?Wr:t[e]}}(t,this)}};function Wr(){wt(null)}function Yr(t,e){const i=Qr.bind(null,t,e),s=Jr.bind(null,t,e);let n=null;const r=new to(t);let o,h;do{if(o=r.next(),o.type==Xr.EOF||o.type==Xr.SEPARATOR&&";"==o.value);else if(o.type==Xr.LITERAL||o.type==Xr.ID){const e=o.value;s(r.next(),[Xr.SEPARATOR],":");const a=[];do{const n=s(r.next(),[Xr.LITERAL,Xr.ID]).value;let o=nr,c=null;h=r.peek(),h.type==Xr.SEPARATOR&&"."==h.value&&(r.next(),o=s(r.next(),[Xr.LITERAL,Xr.ID]).value||o,h=r.peek(),h.type==Xr.SEPARATOR&&"("==h.value&&(r.next(),c=Kr(r,s,i))),a.push({event:e,target:n,method:o,args:c,str:t}),h=r.peek()}while(h.type==Xr.SEPARATOR&&","==h.value&&r.next());n||(n=m()),n[e]=a}else i(!1,`; unexpected token [${o.value||""}]`)}while(o.type!=Xr.EOF);return n}function Kr(t,e,i){let s,n=t.peek(),r=null;if(n.type==Xr.OBJECT){r=m();const{value:i}=t.next();r.__AMP_OBJECT_STRING__=i,e(t.next(),[Xr.SEPARATOR],")")}else do{s=t.next();const{type:h,value:a}=s;if(h!=Xr.SEPARATOR||","!=a&&")"!=a)if(h==Xr.LITERAL||h==Xr.ID){e(t.next(),[Xr.SEPARATOR],"="),s=e(t.next(!0),[Xr.LITERAL,Xr.ID]);const h=[s];if(s.type==Xr.ID)for(n=t.peek();n.type==Xr.SEPARATOR&&"."==n.value;n=t.peek())t.next(),s=e(t.next(!1),[Xr.ID]),h.push(s);const c=0==(o=h).length?null:1==o.length?o[0].value:{expression:o.map((t=>t.value)).join(".")};r||(r=m()),r[a]=c,n=t.peek(),i(n.type==Xr.SEPARATOR&&(","==n.value||")"==n.value),"Expected either [,] or [)]")}else i(!1,`; unexpected token [${s.value||""}]`)}while(s.type!=Xr.SEPARATOR||")"!=s.value);var o;return r}function Qr(t,e,i,s){return Et(i,"Invalid action definition in %s: [%s] %s",e,t,s||"")}function Jr(t,e,i,s,n){return void 0!==n?Qr(t,e,s.includes(i.type)&&i.value==n,`; expected [${n}]`):Qr(t,e,s.includes(i.type)),i}var Xr={INVALID:0,EOF:1,SEPARATOR:2,LITERAL:3,ID:4,OBJECT:5},Zr=" \t\n\r\f\v \u2028\u2029",to=class{constructor(t){this.Ls=t,this.Us=-1}next(t){const e=this.$s(t||!1);return this.Us=e.index,e}peek(t){return this.$s(t||!1)}$s(t){let e=this.Us+1;if(e>=this.Ls.length)return{type:Xr.EOF,index:this.Us};let i=this.Ls.charAt(e);if(-1!=Zr.indexOf(i)){for(e++;e<this.Ls.length&&-1!=Zr.indexOf(this.Ls.charAt(e));e++);if(e>=this.Ls.length)return{type:Xr.EOF,index:e};i=this.Ls.charAt(e)}if(t&&(eo(i)||"."==i&&e+1<this.Ls.length&&eo(this.Ls[e+1]))){let t="."==i,s=e+1;for(;s<this.Ls.length;s++){const e=this.Ls.charAt(s);if("."!=e){if(!eo(e))break}else t=!0}const n=this.Ls.substring(e,s),r=t?parseFloat(n):parseInt(n,10);return e=s-1,{type:Xr.LITERAL,value:r,index:e}}if(-1!=";:.()=,|!".indexOf(i))return{type:Xr.SEPARATOR,value:i,index:e};if(-1!="\"'".indexOf(i)){let t=-1;for(let s=e+1;s<this.Ls.length;s++)if(this.Ls.charAt(s)==i){t=s;break}if(-1==t)return{type:Xr.INVALID,index:e};const s=this.Ls.substring(e+1,t);return e=t,{type:Xr.LITERAL,value:s,index:e}}if("{"==i){let t=1,i=-1;for(let s=e+1;s<this.Ls.length;s++){const e=this.Ls[s];if("{"==e?t++:"}"==e&&t--,t<=0){i=s;break}}if(-1==i)return{type:Xr.INVALID,index:e};const s=this.Ls.substring(e,i+1);return e=i,{type:Xr.OBJECT,value:s,index:e}}let s=e+1;for(;s<this.Ls.length&&-1==" \t\n\r\f\v \u2028\u2029;:.()=,|!\"'{}".indexOf(this.Ls.charAt(s));s++);const n=this.Ls.substring(e,s);if(e=s-1,t&&("true"==n||"false"==n)){const t="true"==n;return{type:Xr.LITERAL,value:t,index:e}}return eo(n.charAt(0))?{type:Xr.LITERAL,value:n,index:e}:{type:Xr.ID,value:n,index:e}}};function eo(t){return t>="0"&&t<="9"}function io(t){return!!t&&"function"==typeof t.getFormData}var so=["GET","POST"],no=[y,p];function ro(t,e){const i=_({},e);if(io(e.body)){const t=e.body;i.headers["Content-Type"]="multipart/form-data;charset=utf-8",i.body=function(t){const e=[];for(let i=t.next();!i.done;i=t.next())e.push(i.value);return e}(t.entries())}return{input:t,init:i}}function oo(t,e){const i=t||{},s=i.credentials;return V(void 0===s||"include"==s||"omit"==s),i.method=void 0===(n=i.method)?"GET":(n=n.toUpperCase(),V(so.includes(n)),n),i.headers=i.headers||{},e&&(i.headers.Accept=e),V(null!==i.body),i;var n}function ho(t){return new Promise((e=>{if(t.ok)return e(t);const{status:i}=t,s=Pt().createError(`HTTP error ${i}`);throw s.retriable=function(t){return 415==t||t>=500&&t<600}(i),s.response=t,s}))}var ao=class{constructor(t){this.win=t;const e=He(t);this.Fs=e.isSingleDoc()?e.getSingleDoc():null}Bs(t,e){return function(t,e,i,n){if(!e)return s();const r=n.prerenderSafe?s():e.whenFirstVisible(),o=ni(e),h=Sn(i),a=o.hasCapability("xhrInterceptor"),c=n.bypassInterceptorForDev&&!1;return h||!a||c?r:e.getRootNode().documentElement.hasAttribute("allow-xhr-interception")?r.then((()=>o.isTrustedViewer())).then((e=>{if(!e&&!Se(t,"untrusted-xhr-interception"))return;const s={"originalRequest":ro(i,n)};return o.sendMessageAwaitResponse("xhr",s).then((t=>function(t,e){if(L(p(t),"Object expected: %s",t),"document"!=e)return new Response(t.body,t.init);const i=m(),s={status:200,statusText:"OK",getResponseHeader:t=>i[String(t).toLowerCase()]||null};if(t.init){const e=t.init;y(e.headers)&&e.headers.forEach((t=>{const e=t[0],s=t[1];i[String(e).toLowerCase()]=String(s)})),e.status&&(s.status=parseInt(e.status,10)),e.statusText&&(s.statusText=String(e.statusText))}return new Response(t.body?String(t.body):"",s)}(t,n.responseType)))})):r}(this.win,this.Fs,t,e).then((t=>{if(t)return t;if(io(e.body)){const t=e.body;e.body=t.getFormData()}return this.win.fetch.apply(null,arguments)}))}Hs(t,e={}){return t=function(t,e,i){return V("string"==typeof e),!1!==i.ampCors&&(e=On(t,e)),e}(this.win,t,e),e=function(t,e,i){i=i||{};const s=function(t){return t.origin||_n(t.location.href).origin}(t);return s==_n(e).origin&&(i.headers=i.headers||{},i.headers["AMP-Same-Origin"]="true"),i}(this.win,t,e),this.Bs(t,e).then((t=>t),(e=>{const i=_n(t).origin;throw Pt().createExpectedError("XHR",`Failed fetching (${i}/...):`,e&&e.message)}))}fetchJson(t,e){return this.fetch(t,function(t){const e=oo(t,"application/json");if("POST"==e.method&&!io(e.body)){V(no.some((t=>t(e.body)))),e.headers["Content-Type"]=e.headers["Content-Type"]||"text/plain;charset=utf-8";const t=e.headers["Content-Type"];e.body="application/x-www-form-urlencoded"===t?In(e.body):JSON.stringify(e.body)}return e}(e))}fetchText(t,e){return this.fetch(t,oo(e,"text/plain"))}xssiJson(t,e){return e?t.text().then((t=>t.startsWith(e)?D(t.slice(e.length)):D(t))):t.json()}fetch(t,e){const i=oo(e);return this.Hs(t,i).then((t=>ho(t)))}sendSignal(t,e){return this.Hs(t,e).then((t=>ho(t)))}getCorsUrl(t,e){return On(t,e)}},co=class extends ao{constructor(t){super(t),this.js=m()}fetch(t,e){const i=e&&e.headers&&e.headers.Accept||"",s=!e||!e.method||"GET"===e.method,n=this.zs(t,i),r=!!this.js[n];if(s&&r)return this.js[n].then((t=>t.clone()));const o=super.fetch(t,e);return s&&(this.js[n]=o.then((t=>(delete this.js[n],t.clone())),(t=>{throw delete this.js[n],t}))),o}zs(t,e){return Tn(Vn(t,jn(this.win.location)))+e}},lo={"+":"-","/":"_","=":"."};function uo(t){const e=function(t){const e=new Array(t.length);for(let i=0;i<t.length;i++)e[i]=String.fromCharCode(t[i]);return e.join("")}(t);return btoa(e).replace(/[+/=]/g,(t=>lo[t]))}var po="Crypto";var mo=["prefetch","preload","preconnect","dns-prefetch"],fo={attributes:!0,attributeFilter:["hidden"],subtree:!0};function go(t){try{return t.state}catch(t){return null}}var vo="History",_o="AMP.History";function Ao(t){const e=ni(t);let i;return e.isOvertakeHistory()||t.win.__AMP_TEST_IFRAME?i=new class{constructor(t,e){this.win=t,this.qs=e,this.Ws=0,this.Ks=null,this.Ys=this.qs.onMessage("historyPopped",(t=>this.Js(t)))}replaceStateForTarget(t){wt("#"==t[0]),this.win.location.replace(t)}cleanup(){this.Ys()}setOnStateUpdated(t){this.Ks=t}Qs(t,e,i){return this.Xs(t)?t:e}Xs(t){return!!t&&void 0!==t.stackIndex}push(t){const e=_({"stackIndex":this.Ws+1},t||{}),i="pushHistory";return this.qs.sendMessageAwaitResponse(i,e).then((t=>{const s=e,n=this.Qs(t,s,i);return this.Zs(n),n}))}pop(t){if(t>this.Ws)return this.get();const e={"stackIndex":this.Ws},i="popHistory";return this.qs.sendMessageAwaitResponse(i,e).then((t=>{const e={"stackIndex":this.Ws-1},s=this.Qs(t,e,i);return this.Zs(s),s}))}replace(t){if(t&&t.url){if(!this.qs.hasCapability("fullReplaceHistory")){const t={"stackIndex":this.Ws};return Promise.resolve(t)}const e=t.url.replace(/#.*/,"");t.url=e}const e=_({"stackIndex":this.Ws},t||{}),i="replaceHistory";return this.qs.sendMessageAwaitResponse(i,e,!0).then((t=>{const s=e,n=this.Qs(t,s,i);return this.Zs(n),n}))}get(){return Promise.resolve({data:void 0,fragment:"",stackIndex:this.Ws,title:""})}Js(t){void 0!==t.newStackIndex&&(t.stackIndex=t.newStackIndex),this.Xs(t)&&this.Zs(t)}Zs(t){const{stackIndex:e}=t;this.Ws!=e&&(this.Ws=e,this.Ks&&this.Ks(t))}getFragment(){return this.qs.hasCapability("fragment")?this.qs.sendMessageAwaitResponse("getFragment",void 0,!0).then((t=>{if(!t)return"";let e=t;return"#"==e[0]&&(e=e.substr(1)),e})):Promise.resolve("")}updateFragment(t){return this.qs.hasCapability("fragment")?this.qs.sendMessageAwaitResponse("replaceHistory",{"fragment":t},!0):s()}}(t.win,e):(ne(t.win,"global-history-binding",class{constructor(t){this.win=t,this.Vs=ti(t);const{history:e}=this.win;this.te=e.length-1;const i=go(e);let s,n;i&&void 0!==i[_o]&&(this.te=Math.min(i[_o],this.te)),this.Ws=this.te,this.ie,this.Ks=null,this.se="state"in e,this.ee=this.ne(this.Ws),e.pushState&&e.replaceState?(this.re=e.originalPushState||e.pushState.bind(e),this.he=e.originalReplaceState||e.replaceState.bind(e),s=(t,e,i)=>{this.ee=t;try{this.re(t,e,i||null)}catch(t){It().error(vo,"pushState failed: "+t.message)}},n=(t,e,i)=>{this.ee=t;try{void 0!==i?this.he(t,e,i):this.he(t,e)}catch(t){It().error(vo,"replaceState failed: "+t.message)}},e.originalPushState||(e.originalPushState=this.re),e.originalReplaceState||(e.originalReplaceState=this.he)):(s=(t,e,i)=>{this.ee=t},n=(t,e,i)=>{this.ee=t}),this.oe=s,this.ue=n;try{this.ue(this.ne(this.Ws,!0))}catch(t){It().error(vo,"Initial replaceState failed: "+t.message)}e.pushState=this.le.bind(this),e.replaceState=this.ce.bind(this),this.ae=t=>{t.state,this.de()},this.win.addEventListener("popstate",this.ae)}cleanup(){this.re&&(this.win.history.pushState=this.re),this.he&&(this.win.history.replaceState=this.he),this.win.removeEventListener("popstate",this.ae)}ne(t,e){const i=m(e?this.fe():void 0);return i[_o]=t,i}setOnStateUpdated(t){this.Ks=t}push(t){return this.pe((()=>{const e=this.me(this.fe(),t||{});return this.le(e,void 0,e.fragment?"#"+e.fragment:void 0),r((()=>this.me(e,{stackIndex:this.Ws})))}))}pop(t){return t=Math.max(t,this.te),this.pe((()=>this._e(this.Ws-t+1))).then((t=>this.me(this.fe(),{stackIndex:t})))}replace(t={}){return this.pe((()=>{const e=this.me(this.fe(),t||{}),i=(e.url||"").replace(/#.*/,""),s=e.fragment?"#"+e.fragment:"";return this.ce(e,e.title,i||s?i+s:void 0),r((()=>this.me(e,{stackIndex:this.Ws})))}))}get(){return r((()=>this.me(this.fe(),{stackIndex:this.Ws})))}backTo(t){return t=Math.max(t,this.te),this.pe((()=>this._e(this.Ws-t)))}de(){let t=this.fe();const e=t?t[_o]:void 0;let i=this.Ws;const s=this.ie;this.ie=void 0,i>this.win.history.length-2&&(i=this.win.history.length-2,this.Zs(this.me(t,{stackIndex:i}))),null==e?i+=1:i=e<this.win.history.length?e:this.win.history.length-1,t||(t={}),t[_o]=i,this.ue(t,void 0,void 0),i!=this.Ws&&this.Zs(this.me(t,{stackIndex:i})),i<this.te&&(this.te=i),s&&s.resolve()}fe(){return this.se?go(this.win.history):this.ee}Ae(){wt(!this.ie)}pe(t){return this.ie?this.ie.promise.then(t,t):t()}ge(){this.Ae();const t=new n,{reject:e,resolve:i}=t,s=this.Vs.timeoutPromise(500,t.promise);return this.ie={promise:s,resolve:i,reject:e},s}_e(t){if(this.Ae(),t<=0)return Promise.resolve(this.Ws);this.ee=this.ne(this.Ws-t);const e=this.ge();return this.win.history.go(-t),e.then((()=>Promise.resolve(this.Ws)))}le(t,e,i){this.Ae(),t||(t={});let s=this.Ws+1;t[_o]=s,this.oe(t,e,i),s!=this.win.history.length-1&&(s=this.win.history.length-1,t[_o]=s,this.ue(t));const n=this.me(t,{stackIndex:s});this.Zs(n)}replaceStateForTarget(t){wt("#"==t[0]),this.pe((()=>{this.win.removeEventListener("popstate",this.ae);try{this.win.location.replace(t)}finally{this.win.addEventListener("popstate",this.ae)}return this.ce(),s()}))}ce(t,e,i){this.Ae(),t||(t={});const s=Math.min(this.Ws,this.win.history.length-1);t[_o]=s,this.ue(t,e,i);const n=this.me(t,{stackIndex:s});this.Zs(n)}Zs(t){this.Ae(),t.stackIndex=Math.min(t.stackIndex,this.win.history.length-1),this.Ws!=t.stackIndex&&(this.Ws=t.stackIndex,this.Ks&&this.Ks(t))}getFragment(){let{hash:t}=this.win.location;return t=t.substr(1),Promise.resolve(t)}updateFragment(t){return this.replace({fragment:t})}me(t,e){const i=_(_({},t&&t.data||{}),e.data||{});return _(_(_({},t||{}),e),{},{data:i})}}),i=oe(t.win,"global-history-binding")),new class{constructor(t,e){this.Bt=t,this.Vs=ti(t.win),this.Pe=e,this.Ws=0,this.ve=[],this.ti=[],this.Pe.setOnStateUpdated(this.Ks.bind(this))}cleanup(){this.Pe.cleanup()}push(t,e){return this.Ee((()=>this.Pe.push(e).then((e=>(this.Ks(e),t&&(this.ve[e.stackIndex]=t),e.stackIndex)))),"push")}pop(t){return this.Ee((()=>this.Pe.pop(t).then((t=>{this.Ks(t)}))),"pop")}replace(t){return this.Ee((()=>this.Pe.replace(t)),"replace")}get(){return this.Ee((()=>this.Pe.get()),"get")}goBack(t){return this.Ee((()=>this.Ws<=0&&!t?s():this.Pe.pop(this.Ws).then((t=>{this.Ks(t)}))),"goBack")}replaceStateForTarget(t){wt("#"==t[0]);const e=this.Bt.win.location.hash;return this.push((()=>{this.Bt.win.location.replace(e||"#")})).then((()=>{this.Pe.replaceStateForTarget(t)}))}getFragment(){return this.Pe.getFragment()}updateFragment(t){return"#"==t[0]&&(t=t.substr(1)),this.Pe.updateFragment(t)}Ks(t){this.Ws=t.stackIndex,this.Te(t)}Te(t){if(this.Ws>=this.ve.length-1)return;const e=[];for(let t=this.ve.length-1;t>this.Ws;t--)this.ve[t]&&(e.push(this.ve[t]),this.ve[t]=void 0);if(this.ve.splice(this.Ws+1),e.length>0)for(let i=0;i<e.length;i++)this.Vs.delay((()=>e[i](t)),1)}Ee(t,e){const i=new n,{promise:s,reject:r,resolve:o}=i,h=new Error("history trace for "+e+": ");return this.ti.push({callback:t,resolve:o,reject:r,trace:h}),1==this.ti.length&&this.Ie(),s}Ie(){if(0==this.ti.length)return;const t=this.ti[0];let e;try{e=t.callback()}catch(t){e=Promise.reject(t)}e.then((e=>{t.resolve(e)}),(e=>{It().error(vo,"failed to execute a task:",e),t.trace&&(t.trace.message+=e,It().error(vo,t.trace)),t.reject(e)})).then((()=>{this.ti.splice(0,1),this.Ie()}))}}(t,i)}new WeakMap,new WeakMap;var yo=null,Po=["gclid","gclsrc"];function bo(){return Et(yo,"E#19457 trackImpressionPromise")}function Io(t,e,i,s){let n;try{n=t.open(e,i,s)}catch(t){It().error("DOM","Failed to open url on target: ",i,t)}var r,o;return!n&&"_top"!=i&&("number"!=typeof o&&(o=0),o+"noopener".length>(r=s||"").length||-1===r.indexOf("noopener",o))&&(n=t.open(e,"_top")),n}var wo="navigation",Eo="click",To="contextmenu",So=["_top","_blank"],Mo="data-a4a-orig-href",Ro=class{constructor(t){this.ampdoc=t,this.xl=t.getRootNode(),this.Go=oi(this.ampdoc),this.qs=ni(this.ampdoc),this.Re=Ye(this.ampdoc),this.Nn=Je(this.ampdoc.win),this.Ol=this.Nn.isIos()&&this.Nn.isSafari(),this.zh=Bt(this.ampdoc.win)&&this.qs.isOvertakeHistory(),this.Cl=this.xl!=this.ampdoc.getRootNode()||!!this.ampdoc.getParent(),this.kl="inabox"==ct(this.ampdoc.win).runtime,this.Nl=this.xl.nodeType==Node.DOCUMENT_NODE?this.xl.documentElement:this.xl,this.Dl=this.Ll.bind(this),this.xl.addEventListener(Eo,this.Dl),this.xl.addEventListener(To,this.Dl),this.Ul=!1,function(t){return t.whenReady().then((()=>!!t.getBody().querySelector("amp-analytics[type=googleanalytics]")))}(this.ampdoc).then((t=>{this.Ul=t})),this.uo=!1,this.$l=!1,Promise.all([this.qs.isTrustedViewer(),this.qs.getViewerOrigin()]).then((t=>{var e;this.uo=t[0],this.$l=(e=t[1],it.test(vn(e).origin))})),this.Fl=null,this.Bl=new Kn,this.Hl=new Kn}static installAnchorClickInterceptor(t,e){e.document.documentElement.addEventListener("click",xo.bind(null,t),!0)}cleanup(){this.Dl&&(this.xl.removeEventListener(Eo,this.Dl),this.xl.removeEventListener(To,this.Dl))}openWindow(t,e,i,s){let n="";!this.Nn.isIos()&&this.Nn.isChrome()||s||(n+="noopener");const r=Io(t,e,i,n);r&&!s&&(r.opener=null)}navigateTo(t,e,i,s={}){const{opener:n=!1,target:r="_top"}=s;e=this.jl(e);const o=si(this.Nl);if(!o.isProtocolValid(e))return void Pt().error(wo,"Cannot navigate to invalid protocol: "+e);Et(So.includes(r),`Target '${r}' not supported.`);const h=o.getSourceUrl(t.location);e=o.resolveRelativeUrl(e,h),"_blank"!=r?i&&(this.Fl||(this.Fl=this.zl()),this.Fl.includes(i)&&this.navigateToAmpUrl(e,i))||(t.top.location.href=e):this.openWindow(t,e,r,n)}navigateToAmpUrl(t,e){return!!this.qs.hasCapability("a2a")&&(this.qs.sendMessage("a2aNavigate",{"url":t,"requestedBy":e}),!0)}zl(){const t=this.xl.querySelector('meta[name="amp-to-amp-navigation"]');return t&&t.hasAttribute("content")?t.getAttribute("content").split(",").map((t=>t.trim())):[]}Ll(t){if(t.defaultPrevented)return;const e=kt(t.__AMP_CUSTOM_LINKER_TARGET__||t.target,"A");e&&e.href&&(t.type==Eo?this.Gl(e,t):t.type==To&&this.ql(e,t))}Gl(t,e){this.Wl(t);let i=this.Kl(t.href);if(this.Yl(e,t,i))return;if(this.Jl(e,t,i))return;const s=this.Ql();ko(i)!=ko(s)&&(this.Xl(t,e),i=this.Kl(t.href)),this.Zl(e,t,i,s)}ql(t,e){this.Wl(t),this.Xl(t,e)}Xl(t,e){this.Bl.forEach((i=>{i(t,e)}))}jl(t){return this.Hl.forEach((e=>{t=e(t)})),t}Wl(t){let e=null;this.Ul&&!this.Cl&&(e=function(t,e){const i=W(_n(ls.getLocation(t).href).search),s=[];for(let t=0;t<Po.length;t++){const e=Po[t];void 0!==i[e]&&s.push(e)}const n=e.getAttribute("data-amp-addparams");let{href:r}=e;n&&(r=bn(r,W(n)));const o=W(_n(r).search);for(let t=s.length-1;t>=0;t--)void 0!==o[s[t]]&&s.splice(t,1);return function(t){let e="";for(let i=0;i<t.length;i++){const s=t[i];e+=0==i?`${s}=QUERY_PARAM(${s})`:`&${s}=QUERY_PARAM(${s})`}return e}(s)}(this.ampdoc.win,t)),ei(t).maybeExpandLink(t,e)}Jl(t,e,i){if(!this.zh)return!1;const s=Tt(e),n=e.href,{protocol:r}=i;if("ftp:"==r)return Io(s,n,"_blank"),t.preventDefault(),!0;const o=/^(https?|mailto):$/.test(r);return!(!this.Ol||o||(Io(s,n,"_top"),t.preventDefault(),0))}Yl(t,e,i){return!(!e.hasAttribute("rel")||!e.getAttribute("rel").split(" ").map((t=>t.trim())).includes("amphtml")||!this.navigateToAmpUrl(i.href,"<a rel=amphtml>")||(t.preventDefault(),0))}Zl(t,e,i,s){const n=ko(i),r=ko(s);if(i.hash&&n==r)this.tc(t,i,s);else{let i=(e.getAttribute("target")||"").toLowerCase();(this.Cl||this.kl)&&"_top"!=i&&"_blank"!=i&&(i="_blank",e.setAttribute("target",i));const{win:r}=this.ampdoc,o=Je(r),h=ni(e);s.search&&o.isSafari()&&o.getMajorVersion()>=13&&h.isProxyOrigin()&&h.isEmbedded()&&this.ic(r,s,i),this.viewerInterceptsNavigation(n,"intercept_click")&&t.preventDefault()}}ic(t,e,i){const s=e.href,n=`${e.origin}${e.pathname}${e.hash}`;t.history.replaceState(null,"",n);const r=()=>{const e=t.location.href;e==n?t.history.replaceState(null,"",s):It().error(wo,"Unexpected iframe URL change:",e,n)};"_blank"===i?t.setTimeout(r,0):t.addEventListener("pageshow",(function e(i){i.persisted&&(r(),t.removeEventListener("pageshow",e))}))}tc(t,e,i){if(t.preventDefault(),this.Cl)return;const s=e.hash.slice(1);let n=null;if(s){const t=Mt(s);n=this.xl.getElementById(s)||this.xl.querySelector(`a[name="${t}"]`)}e.hash!=i.hash?this.Re.replaceStateForTarget(e.hash).then((()=>{this.sc(n,s)})):this.sc(n,s)}registerAnchorMutator(t,e){this.Bl.enqueue(t,e)}registerNavigateToMutator(t,e){this.Hl.enqueue(t,e)}sc(t,e){t&&(this.Go.scrollIntoView(t),ti(this.ampdoc.win).delay((()=>this.Go.scrollIntoView(t)),1))}Kl(t){return si(this.Nl).parse(t)}Ql(){return this.Kl("")}viewerInterceptsNavigation(t,e){const i=this.qs.hasCapability("interceptNavigation"),s=this.ampdoc.isSingleDoc()&&this.ampdoc.getRootNode().documentElement.hasAttribute("allow-navigation-interception");return!(!i||!s||!this.uo&&!this.$l||(this.qs.sendMessage("navigateTo",{"url":t,"requestedBy":e}),0))}};function xo(t,e){const i=kt(e.target,"A");if(!i||!i.href)return;const s=i.getAttribute(Mo)||i.getAttribute("href");if(!s)return;const n={"CLICK_X":()=>e.pageX,"CLICK_Y":()=>e.pageY},r=ei(i).expandUrlSync(s,n,{"CLICK_X":!0,"CLICK_Y":!0});r!=s&&(i.getAttribute(Mo)||i.setAttribute(Mo,s),i.setAttribute("href",r))}function ko(t){return`${t.origin}${t.pathname}${t.search}`}function jo(t){return y(t)?t:[t]}function Vo(t){ne(t,"platform",class{constructor(t){this.Er=t.navigator,this.i=t}isAndroid(){return/Android/i.test(this.Er.userAgent)}isIos(){return/iPhone|iPad|iPod/i.test(this.Er.userAgent)}isSafari(){return/Safari/i.test(this.Er.userAgent)&&!this.isChrome()&&!this.isEdge()&&!this.isFirefox()&&!this.isOpera()}isChrome(){return/Chrome|CriOS/i.test(this.Er.userAgent)&&!this.isEdge()&&!this.isOpera()}isFirefox(){return/Firefox|FxiOS/i.test(this.Er.userAgent)&&!this.isEdge()}isOpera(){return/OPR\/|Opera|OPiOS/i.test(this.Er.userAgent)}isEdge(){return/Edge/i.test(this.Er.userAgent)}isWebKit(){return/WebKit/i.test(this.Er.userAgent)&&!this.isEdge()}isWindows(){return/Windows/i.test(this.Er.userAgent)}isStandalone(){return this.isIos()&&this.Er.standalone||this.isChrome()&&this.i.matchMedia("(display-mode: standalone)").matches}isBot(){return/bot/i.test(this.Er.userAgent)}getMajorVersion(){return this.isSafari()?this.isIos()?this.getIosMajorVersion()||0:this.Tr(/\sVersion\/(\d+)/,1):this.isChrome()?this.Tr(/(Chrome|CriOS)\/(\d+)/,2):this.isFirefox()?this.Tr(/(Firefox|FxiOS)\/(\d+)/,2):this.isOpera()?this.Tr(/(OPR|Opera|OPiOS)\/(\d+)/,2):this.isEdge()?this.Tr(/Edge\/(\d+)/,1):0}Tr(t,e){if(!this.Er.userAgent)return 0;const i=this.Er.userAgent.match(t);return!i||e>=i.length?0:parseInt(i[e],10)}getIosVersionString(){var t,e,i;return this.isIos()&&(null===(t=this.Er.userAgent)||void 0===t||null===(e=t.match(/OS ([0-9]+[_.][0-9]+([_.][0-9]+)?)\b/))||void 0===e||null===(i=e[1])||void 0===i?void 0:i.replace(/_/g,"."))||""}getIosMajorVersion(){const t=this.getIosVersionString();return""==t?null:Number(t.split(".")[0])}})}function Oo(t){return t.queryCommandSupported("copy")}function Co(t){return t.hasAttribute("hidden")}var No="STANDARD-ACTIONS",Lo=/^i-amphtml-/;var Do="__AMP_IMPL_",zo=()=>{};function Uo(t){ne(t,"timer",class{constructor(t){this.win=t,this.qe=this.win.Promise.resolve(),this.We=0,this.Ke={},this.Ye=Date.now()}timeSinceStart(){return Date.now()-this.Ye}delay(t,e){if(!e){const e="p"+this.We++;return this.qe.then((()=>{this.Ke[e]?delete this.Ke[e]:t()})).catch(Un),e}return this.win.setTimeout((()=>{try{t()}catch(t){throw Un(t),t}}),e)}cancel(t){"string"!=typeof t?this.win.clearTimeout(t):this.Ke[t]=!0}promise(t){return new this.win.Promise((e=>{if(-1==this.delay(e,t))throw new Error("Failed to schedule timer.")}))}timeoutPromise(t,e,i){let s;const n=new this.win.Promise(((e,n)=>{if(s=this.delay((()=>{n(Pt().createError(i||"timeout"))}),t),-1==s)throw new Error("Failed to schedule timer.")}));if(!e)return n;const r=()=>{this.cancel(s)};return e.then(r,r),this.win.Promise.race([n,e])}poll(t,e){return new this.win.Promise((i=>{const s=this.win.setInterval((()=>{e()&&(this.win.clearInterval(s),i())}),t)}))}})}var Fo="Expander",$o=class{constructor(t,e,i,s,n,r){this.Je=t,this.Qe=e,this.Xe=i,this.Ze=s,this.tn=n,this.sn=!r}expand(t){if(!t.length)return this.Ze?t:Promise.resolve(t);const e=this.Je.getExpr(this.Qe,this.tn),i=this.en(t,e);return i.length?this.nn(t,i):this.Ze?t:Promise.resolve(t)}getMacroNames(t){const e=this.Je.getExpr(this.Qe,this.tn);return t.match(e)||[]}en(t,e){const i=[];return t.replace(e,((t,e,s)=>{const{length:n}=t,r={start:s,stop:n+s-1,name:e,length:n};i.push(r)})),i}nn(t,e){const i=[];let s=0,n=0,r=e[n],o=0,h=!1;const a=l=>{let u="",d=[];const p=[];for(;s<t.length&&n<=e.length;){const c=u.trim();if(r&&s===r.start){let h;c&&d.push(o?(m=u).trimStart?m.trimStart():(m+"_").trim().slice(0,-1):u),h=this.Qe&&f(this.Qe,r.name)?{name:r.name,prioritized:this.Qe[r.name],encode:l}:_(_({},this.Je.get(r.name)),{},{name:r.name,encode:l}),s=r.stop+1,r=e[++n],"("===t[s]?(s++,o++,i.push(h),d.push(a(!1))):d.push(this.rn(h)),u=""}else if("`"===t[s])h?(h=!1,u.length&&d.push(u)):(h=!0,c&&d.push(c)),u="",s++;else if(o&&","===t[s]&&!h)c&&d.push(c),p.push(d),d=[],","===t[s+1]&&(p.push([""]),s++),u="",s++;else{if(o&&")"===t[s]&&!h){s++,o--;const t=i.pop();return c&&d.push(c),p.push(d),this.rn(t,p)}u+=t[s],s++}s===t.length&&u.length&&d.push(u)}var m;return this.Ze?d.join(""):Promise.all(d).then((t=>t.join(""))).catch((t=>(c(t),"")))};return a(this.sn)}rn(t,e){const{encode:i,name:s}=t;let n;if(null!=t.prioritized?n=t.prioritized:this.Ze&&null!=t.sync?n=t.sync:this.Ze?(Pt().error(Fo,"ignoring async replacement key: ",t.name),n=""):n=t.async||t.sync,this.Ze){const t=this.hn(n,s,e);return i?encodeURIComponent(t):t}return this.on(n,s,e).then((t=>i?encodeURIComponent(t):t))}on(t,e,i){let s;try{if("function"==typeof t){const e=t;s=i?this.un(i).then((t=>e.apply(null,t))):r(e)}else s=Promise.resolve(t);return s.then((t=>{let s;return this.ln(e,t,i),s=null==t?"":t,s})).catch((t=>(c(t),this.ln(e,"",i),Promise.resolve(""))))}catch(t){return c(t),this.ln(e,"",i),Promise.resolve("")}}un(t){return Promise.all(t.map((t=>Promise.all(t).then((t=>t.join(""))))))}hn(t,e,i){try{let s,n=t;return"function"==typeof t&&(n=t.apply(null,this.cn(i))),n&&"function"==typeof n.then?(Pt().error(Fo,"ignoring async macro resolution"),s=""):"string"==typeof n||"number"==typeof n||"boolean"==typeof n?(this.ln(e,n,i),s=n.toString()):(this.ln(e,"",i),s=""),s}catch(t){return c(t),this.ln(e,"",i),""}}cn(t){return t?t.map((t=>t.join(""))):t}ln(t,e,i){if(!this.Xe)return;let s="";i&&(s=`(${i.filter((t=>""!==t)).join(",")})`),this.Xe[`${t}${s}`]=e||""}},Ho="UrlReplacements";function Bo(t){return()=>(new Date)[t]()}function Go(t,e){return()=>t[e]}function qo(t,e){return e?(Et("ISOCountry"===e,"The value passed to AMP_GEO() is not valid name:"+e),t&&t[e]||"unknown"):(null==t?void 0:t.matchedISOCountryGroups.join(","))||"unknown"}function Wo(t,e){wt(t);try{void 0!==t(e)&&It().error("VSYNC","callback returned a value but vsync cannot propogate it: %s",t.toString())}catch(t){return c(t),!1}return!0}function Yo(t){if(t.defaultPrevented)return;const e=t.target;if(!e||"FORM"!=e.tagName)return;let i;i=e.classList.contains("i-amphtml-form")?!e.hasAttribute("amp-novalidate"):!e.hasAttribute("novalidate"),i&&e.checkValidity&&!e.checkValidity()&&t.preventDefault();const s=e.elements;for(let t=0;t<s.length;t++)Et(!s[t].name||s[t].name!=gn,"Illegal input name, %s found: %s",gn,s[t]);const n=e.getAttribute("action"),r=e.getAttribute("action-xhr"),o=(e.getAttribute("method")||"GET").toUpperCase();if(r&&(En(r,e,"action-xhr"),Et(!Sn(r),"form action-xhr should not be on AMP CDN: %s",e),Cn(r)),n&&(En(n,e,"action"),Et(!Sn(n),"form action should not be on AMP CDN: %s",e),Cn(n)),"GET"==o)Et(r||n,"form action-xhr or action attribute is required for method=GET: %s",e);else if("POST"==o){if(n){const t="form";Pt().error(t,"action attribute is invalid for method=POST: %s",e)}r||(t.preventDefault(),Et(!1,"Only XHR based (via action-xhr attribute) submissions are support for POST requests. %s",e))}const h=e.getAttribute("target");h?Et("_blank"==h||"_top"==h,"form target=%s is invalid can only be _blank or _top: %s",h,e):e.setAttribute("target","_top"),r&&(t.preventDefault(),t.stopImmediatePropagation(),Ue(e).execute(e,"submit",null,e,e,t,3))}var Ko=["<link rel=preload referrerpolicy=origin>"],Qo=18e4,Jo=null;function Xo(t){var e;(function(t){ne(t,"crypto",class{constructor(t){this.i=t;let e=null,i=!1;t.crypto&&(t.crypto.subtle?e=t.crypto.subtle:t.crypto.webkitSubtle&&(e=t.crypto.webkitSubtle,i=!0)),this.pkcsAlgo={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}},this.subtle=e,this.gr=i,this.Pr=null}sha384(t){if("string"==typeof t&&(t=U(t)),!this.subtle||this.Pr)return(this.Pr||this.vr()).then((e=>e(t)));try{return this.subtle.digest({name:"SHA-384"},t).then((t=>new Uint8Array(t)),(e=>(e.message&&e.message.indexOf("secure origin")<0&&Pt().error(po,"SubtleCrypto failed, fallback to closure lib.",e),this.vr().then((()=>this.sha384(t))))))}catch(e){return It().error(po,"SubtleCrypto failed, fallback to closure lib.",e),this.vr().then((()=>this.sha384(t)))}}sha384Base64(t){return this.sha384(t).then((t=>uo(t)))}uniform(t){return this.sha384(t).then((t=>{let e=0;for(let i=2;i>=0;i--)e=(e+t[i])/256;return e}))}vr(){return this.Pr?this.Pr:this.Pr=We(this.i).preloadExtension("amp-crypto-polyfill").then((()=>oe(this.i,"crypto-polyfill")))}isPkcsAvailable(){return Boolean(this.subtle)&&!1!==this.i.isSecureContext}importPkcsKey(t){wt(this.isPkcsAvailable());const e=this.gr?(i=JSON.stringify(t),"undefined"!=typeof TextEncoder?(new TextEncoder).encode(i):U(unescape(encodeURIComponent(i)))):t;var i;return this.subtle.importKey("jwk",e,this.pkcsAlgo,!0,["verify"])}verifyPkcs(t,e,i){return wt(this.isPkcsAvailable()),this.subtle.verify(this.pkcsAlgo,t,e,i)}})})(t),ne(t,"batched-xhr",co),Vo(t),Uo(t),Uo(e=t),ne(e,"vsync",class{constructor(t){this.win=t,this.Ir=He(this.win),this.Mr=this.Rr(),this.di=[],this.yr=[],this.wr=[],this.br=[],this.Os=!1,this.Vr=null,this.Sr=null,this.Or=this.Cr.bind(this),this.kr=new Nr(this.win,this.Or,16),this.Nr=new Nr(this.win,this.Or,40),this.Dr=this.Lr.bind(this),this.Ir.isSingleDoc()?this.Ir.getSingleDoc().onVisibilityChanged(this.Dr):hs(this.win.document,this.Dr)}dispose(){as(this.win.document,this.Dr)}Lr(){this.Os&&this.Ur()}run(t,e){this.di.push(t),this.wr.push(e||void 0),this.gi()}runPromise(t,e){if(this.run(t,e),this.Vr)return this.Vr;const i=new n;return this.Sr=i.resolve,this.Vr=i.promise}createTask(t){return e=>{this.run(t,e)}}mutate(t){this.run({measure:void 0,mutate:t})}mutatePromise(t){return this.runPromise({measure:void 0,mutate:t})}measure(t){this.run({measure:t,mutate:void 0})}measurePromise(t){return new Promise((e=>{this.measure((()=>{e(t())}))}))}canAnimate(t){return this.$r(wt(t))}$r(t){if(os(this.win.document)!=$i)return!1;if(this.Ir.isSingleDoc())return this.Ir.getSingleDoc().isVisible();if(t){const e=this.Ir.getAmpDocIfAvailable(t);return!e||e.isVisible()}return!0}runAnim(t,e,i){return!!this.$r(t)&&(this.run(e,i),!0)}createAnimTask(t,e){return i=>this.runAnim(t,e,i)}runAnimMutateSeries(t,e,i){return this.$r(t)?new Promise(((s,n)=>{const r=Date.now();let o=0;const h=this.createAnimTask(t,{mutate:t=>{const a=Date.now()-r;e(a,a-o,t)?i&&a>i?n(new Error("timeout")):(o=a,h(t)):s()}});h({})})):Promise.reject(Fn())}gi(){this.Os||(this.Os=!0,this.Ur())}Ur(){this.$r()?(this.Mr(this.Or),this.Nr.schedule()):this.kr.schedule()}Cr(){this.Nr.cancel(),this.Os=!1;const{Sr:t,wr:e,di:i}=this;this.Sr=null,this.Vr=null,this.di=this.yr,this.wr=this.br;for(let t=0;t<i.length;t++)i[t].measure&&(Wo(i[t].measure,e[t])||(i[t].mutate=void 0));for(let t=0;t<i.length;t++)i[t].mutate&&Wo(i[t].mutate,e[t]);this.yr=i,this.br=e,this.yr.length=0,this.br.length=0,t&&t()}Rr(){const t=this.win.requestAnimationFrame||this.win.webkitRequestAnimationFrame;if(t)return t.bind(this.win);let e=0;return t=>{const i=Date.now(),s=Math.max(0,16-(i-e));e=i+s,this.win.setTimeout(t,s)}}}),function(t){ne(t,"xhr",ao)}(t),function(t){ne(t,"input",class{constructor(t){this.win=t,this.Fr=this.Br.bind(this),this.Hr=this.jr.bind(this),this.zr=null,this.Gr=null,this.qr=null,this.Wr="ontouchstart"in t||void 0!==t.navigator.maxTouchPoints&&t.navigator.maxTouchPoints>0||void 0!==t.DocumentTouch,this.Kr=!1,this.win.document.addEventListener("keydown",this.Fr),this.win.document.addEventListener("mousedown",this.Hr),this.Yr=!0,this.Jr=0,this.Qr=new qi,this.Xr=new qi,this.Zr=new qi,this.Wr&&(this.Yr=!this.Wr,this.zr=this.th.bind(this),Ei(t.document,"mousemove",this.zr))}setupInputModeClasses(t){this.onTouchDetected((e=>{this.ih(t,"amp-mode-touch",e)}),!0),this.onMouseDetected((e=>{this.ih(t,"amp-mode-mouse",e)}),!0),this.onKeyboardStateChanged((e=>{this.ih(t,"amp-mode-keyboard-active",e)}),!0)}isTouchDetected(){return this.Wr}onTouchDetected(t,e){return e&&t(this.isTouchDetected()),this.Qr.add(t)}isMouseDetected(){return this.Yr}onMouseDetected(t,e){return e&&t(this.isMouseDetected()),this.Xr.add(t)}isKeyboardActive(){return this.Kr}onKeyboardStateChanged(t,e){return e&&t(this.isKeyboardActive()),this.Zr.add(t)}ih(t,e,i){t.waitForBodyOpen().then((t=>{ri(this.win).mutate((()=>{t.classList.toggle(e,i)}))}))}Br(t){if(this.Kr)return;if(t.defaultPrevented)return;const{target:e}=t;e&&("INPUT"==e.tagName||"TEXTAREA"==e.tagName||"SELECT"==e.tagName||"OPTION"==e.tagName||e.hasAttribute("contenteditable"))||(this.Kr=!0,this.Zr.fire(!0))}jr(){this.Kr&&(this.Kr=!1,this.Zr.fire(!1))}th(t){if(t.sourceCapabilities&&t.sourceCapabilities.firesTouchEvents)return void this.sh();let e;this.qr||(this.qr=this.eh.bind(this),this.Gr=this.sh.bind(this));const i=function(t,e,i,s){let n;const r=new Promise((e=>{n=Ei(t,"click",e,void 0)}));return r.then(n,n),s&&s(n),r}(this.win.document,0,0,(t=>{e=t}));return ti(this.win).timeoutPromise(300,i).then(this.Gr,(()=>{e&&e(),this.qr()}))}eh(){this.Yr=!0,this.Xr.fire(!0)}sh(){this.Jr++,this.Jr<=3&&Ei(this.win.document,"mousemove",this.zr)}})}(t),function(t){ne(t,"preconnect",class{constructor(t){this.nh=t.document,this.rh=t.document.head,this.hh={},this.oh={},this.Nn=Je(t),this.hh[_n(t.location.href).origin]=!0,this.uh=function(t){if(!Jo){const e=t.document.createElement("link"),i=e.relList;if(e.as="invalid-value",!i||!i.supports)return{};Jo={preconnect:i.supports("preconnect"),preload:i.supports("preload"),onlyValidAs:"invalid-value"!=e.as}}return Jo}(t),this.Vs=ti(t)}url(t,e,i){t.whenFirstVisible().then((()=>{this.lt(t,e,i)}))}lt(t,e,i){if(!this.lh(e))return;const{origin:s}=_n(e),n=Date.now(),r=this.hh[s];if(r&&n<r)return void(i&&(this.hh[s]=n+Qo));const o=i?Qo:1e4;let h;this.hh[s]=n+o,this.uh.preconnect||(h=this.nh.createElement("link"),h.setAttribute("rel","dns-prefetch"),h.setAttribute("href",s),this.rh.appendChild(h));const a=this.nh.createElement("link");a.setAttribute("rel","preconnect"),a.setAttribute("href",s),a.setAttribute("referrerpolicy","origin"),this.rh.appendChild(a),this.Vs.delay((()=>{h&&h.parentNode&&h.parentNode.removeChild(h),a.parentNode&&a.parentNode.removeChild(a)}),1e4),this.ah(t,s)}preload(t,e,i){this.lh(e)&&(this.oh[e]||(this.oh[e]=!0,this.url(t,e,!0),this.uh.preload&&("document"==i&&this.Nn.isSafari()||t.whenFirstVisible().then((()=>{this.dh(e)})))))}dh(t){const e=tn(this.nh)(Ko);e.setAttribute("href",t),this.uh.onlyValidAs?e.as="fetch":e.as="",this.rh.appendChild(e)}lh(t){return!(!t.startsWith("https:")&&!t.startsWith("http:"))}ah(t,e){if(this.uh.preconnect||!this.Nn.isSafari()&&!this.Nn.isIos())return;const i=Date.now();this.hh[e]=i+Qo;const s=e+"/robots.txt?_AMP_safari_preconnect_polyfill_cachebust="+(i-i%Qo),n=new XMLHttpRequest;n.open("HEAD",s,!0),n.withCredentials=!0,n.send()}})}(t)}function Zo(t){if(null==t)return 0;const e=function(t){let e=t;for(;null!=(t=t.parentNode);)t.nodeName.startsWith("AMP-")&&(e=t);return e}(t),{nodeName:i}=e;return"IMG"===i||"AMP-IMG"===i?1:"VIDEO"===i||"AMP-VIDEO"===i?2:"AMP-CAROUSEL"===i?8:"AMP-BASE-CAROUSEL"===i?16:"AMP-AD"===i?4:!i.startsWith("AMP-")&&e.textContent?32:0}function th(t){ur(t.top)||ne(t,"iframeMessagingClient",eh.bind(null,t),!0)}function eh(t){const e=new class{constructor(t,e){this.i=t,this.tf=ct().rtvVersion||null,this.nf=e||null,this.rf=null,this.ef=1,this.sf=m(),this.if()}getData(t,e,i){const s=t+"-result",n=this.ef++,r=this.registerCallback(s,(t=>{t.messageId===n&&(r(),i(t.content))})),o={};o.payload=e,o.messageId=n,this.sendMessage(t,o)}makeRequest(t,e,i){const s=this.registerCallback(e,i);return this.sendMessage(t),s}requestOnce(t,e,i){const s=this.registerCallback(e,(t=>{s(),i(t)}));return this.sendMessage(t),s}registerCallback(t,e){return this.ff(t).add(e)}sendMessage(t,e){const i=function(t,e,i={},s=null){const n=i;return n.type=t,n.sentinel=e,ar+(s||"")+JSON.stringify(n)}(t,this.rf,e,this.tf);if(this.nf)this.vo(this.nf,i);else for(let t=0,e=this.i;t<10&&e!=this.i.top;t++)e=e.parent,this.vo(e,i),t++}vo(t,e){this.uf(t)?this.cf(t,e):t.postMessage(e,"*")}cf(t,e){t.postMessage(e,{"targetOrigin":"*","includeUserActivation":!0})}if(){yi(this.i,"message",(t=>{if(this.nf&&t.source!=this.nf)return;const e=function(t){if(!function(t){return"string"==typeof t&&t.startsWith(ar)&&-1!=t.indexOf("{")}(t))return null;C(t);const e=t.indexOf("{");return V(-1!=e),z(t.substr(e),(e=>{c(new Error(`MESSAGING: Failed to parse message: ${t}\n${e.message}`))}))}(wi(t));e&&e.sentinel==this.rf&&(e.origin=t.origin,this.nf||(this.nf=t.source),this.af(e.type,e))}),void 0)}setSentinel(t){this.rf=t}ff(t){return t in this.sf||(this.sf[t]=new qi),this.sf[t]}af(t,e){t in this.sf&&this.sf[t].fire(e)}uf(t){return 1==t.postMessage.length}}(t),i=z(t.name);let s=null;return i&&i._context&&(s=i._context.sentinel),e.setSentinel(s||function(t){return String(t.Math.random()).substr(2)}(t)),e}function ih(t,e,i){t.requestAnimationFrame((()=>{e.measure&&e.measure(i),e.mutate&&e.mutate(i)}))}function sh(t){const e=new class{constructor(t){this.win=t,this.wn=new qi,this.bn=new qi;const e=t.innerWidth,i=t.innerHeight;this.nd=Kt(0,0,e,i),this.Wm=Kt(0,i+1,e,i),this.Km=function(t){return he(t,"iframeMessagingClient")}(t),this.Qm=null,this.tg=$(this.win,(()=>{this.wn.fire()}),100),this.eg=ur(this.win.top),this.ig=this.eg?function(t){return t.ampInaboxPositionObserver=t.ampInaboxPositionObserver||new class{constructor(t){this.i=t,this.td=null,this.Gn=function(t){const e=t.document;return e.scrollingElement?e.scrollingElement:e.body&&(i=t.navigator.userAgent,/WebKit/i.test(i)&&!/Edge/i.test(i))?e.body:e.documentElement;var i}(this.i),this.nd=null}observe(t,e){if(!this.td){this.td=new qi;const t=$(this.i,(()=>{this.gf(),this.td.fire()}),100);this.gf(),this.i.addEventListener("scroll",t,!0),this.i.addEventListener("resize",t,!0)}return e(this.rd(t)),this.td.add((()=>{e(this.rd(t))}))}gf(){this.nd=this.getViewportRect()}rd(t){return{"viewportRect":this.nd,"targetRect":this.getTargetRect(t)}}getViewportRect(){const{Gn:t,i:e}=this,i=t.scrollLeft||e.pageXOffset,s=t.scrollTop||e.pageYOffset;return Kt(Math.round(i),Math.round(s),e.innerWidth,e.innerHeight)}getTargetRect(t){let e=Qt(t.getBoundingClientRect());for(let i=0,s=t.ownerDocument.defaultView;i<10&&s&&s!=this.i&&s!=this.i.top;i++,s=s.parent){const t=Qt(s.frameElement.getBoundingClientRect());e=Jt(e,t.left,t.top)}return e}}(t),t.ampInaboxPositionObserver}(this.win.top):null,this.sg=this.eg?function(t){return t.ampInaboxFrameOverlayManager=t.ampInaboxFrameOverlayManager||new class{constructor(t){this.i=t,this.od=!1,this.ud=!1,this.ld=null,this.fd()}fd(){this.i.addEventListener("resize",(()=>this.onWindowResize()))}onWindowResize(){this.od&&(this.ud=!0)}expandFrame(t,e){!function(t,e,i){ih(t,{measure(i){i.viewportSize={width:t.innerWidth,height:t.innerHeight},i.rect=Qt(e.getBoundingClientRect())},mutate(s){const{height:n,width:r}=s.viewportSize,o=Kt(0,0,r,n);var h;!function(t,e,i,s){const n=is(i.width/2-e.width/2-e.left),r=is(i.height/2-e.height/2-e.top);var o,h;ts(t,{"position":"fixed","top":is(e.top),"right":is(i.width-(e.left+e.width)),"left":is(e.left),"bottom":is(i.height-(e.top+e.height)),"height":is(e.height),"width":is(e.width),"transition":"transform 150ms ease","transform":(o=n,h=r,null==h?`translate(${ss(o,is)})`:`translate(${ss(o,is)}, ${ss(h,is)})`),"margin":0})}(e,s.rect,s.viewportSize),Xi(e,{"pointer-events":"none"}),h=()=>{ih(t,{mutate(){rs(e,["pointer-events"]),function(t){ts(t,{"position":"fixed","z-index":1e3,"left":0,"right":0,"top":0,"bottom":0,"width":"100vw","height":"100vh","transition":null,"transform":null,"margin":0,"border":0})}(e),i(s.rect,o)}})},setTimeout(h,200)}},{})}(this.i,t,((t,i)=>{this.od=!0,this.ud=!1,this.ld=t,e(i)}))}collapseFrame(t,e){!function(t,e,i,s){ih(t,{mutate(){!function(t){rs(t,["position","z-index","left","right","top","bottom","width","height","margin","border"])}(e),i(),ih(t,{measure(){s(Qt(e.getBoundingClientRect()))}})}})}(this.i,t,(()=>{this.od=!1,this.ud||e(this.ld)}),(t=>{this.ld=t,this.ud&&e(this.ld)}))}}(t),t.ampInaboxFrameOverlayManager}(this.win.top):null,this.ng=null}connect(){return this.eg?this.rg():this.og()}og(){return this.Km.makeRequest(cr,lr,(t=>{this.hg(t.viewportRect,t.targetRect)})),s()}rg(){return(t=this.win.document.documentElement,le(t,"resources")).then((()=>{this.ng=this.ng||this.ig.observe(this.win.frameElement||this.getScrollingElement(),(t=>{this.hg(t.viewportRect,t.targetRect)}))}));var t}hg(t,e){const i=this.nd;this.nd=t,this.ag(e),rh(this.nd,i)&&this.bn.fire(),nh(this.nd,i)&&this.tg()}getLayoutRect(t){const e=t.getBoundingClientRect(),{left:i,top:s}=e;return Kt(Math.round(i+this.Wm.left),Math.round(s+this.Wm.top),Math.round(e.width),Math.round(e.height))}onScroll(t){this.wn.add(t)}onResize(t){this.bn.add(t)}getSize(){return{width:this.nd.width,height:this.nd.height}}getScrollTop(){return this.nd.top}getScrollLeft(){return this.nd.left}getScrollingElement(){return this.getBodyElement()}getScrollingElementScrollsLikeViewport(){return!0}supportsPositionFixed(){return!1}ag(t){if(!t)return;const e=Jt(t,this.nd.left,this.nd.top);var i,s;(nh(i=e,s=this.Wm)||rh(i,s))&&(this.Wm=e,this.cg())}getChildResources(){return Ze(this.win.document.documentElement).get()}cg(){this.getChildResources().forEach((t=>t.measure()))}updateLightboxMode(t){return t?this.lg():this.ug()}getRootClientRectAsync(){return this.eg?this.rg().then((()=>this.ig.getTargetRect(this.win.frameElement||this.getScrollingElement()))):(this.Qm||(this.Qm=new Promise((t=>{this.Km.requestOnce(cr,lr,(e=>{this.Qm=null,V(e.targetRect),t(e.targetRect)}))}))),this.Qm)}lg(){return this.dg().then((()=>this.pg()))}ug(){return this.mg().then((()=>this.fg()))}dg(){return function(t,e){return ri(t).runPromise({measure:e=>{e.width=t.innerWidth,e.height=t.innerHeight},mutate:t=>{Xi(e,{"background":"transparent","left":"50%","top":"50%","right":"auto","bottom":"auto","position":"absolute","height":is(t.height),"width":is(t.width),"margin-top":is(-t.height/2),"margin-left":is(-t.width/2)})}},{})}(this.win,this.getBodyElement())}fg(){return function(t,e){return ri(t).mutatePromise((()=>{rs(e,["position","left","top","right","bottom","width","height","margin-left","margin-top"])}))}(this.win,this.getBodyElement())}pg(){return new Promise(((t,e)=>{if(this.eg){const i=this.win.frameElement;i?this.sg.expandFrame(i,(e=>{this.ag(e),t()})):e("Request to open lightbox failed; frame does not exist.")}else this.Km.requestOnce("full-overlay-frame","full-overlay-frame-response",(i=>{i.success?(this.ag(i.boxRect),t()):e("Request to open lightbox rejected by host document")}))}))}mg(){return new Promise(((t,e)=>{if(this.eg){const i=this.win.frameElement;i?this.sg.collapseFrame(i,(e=>{this.ag(e),t()})):e("Request to open lightbox failed; frame does not exist.")}else this.Km.requestOnce("cancel-full-overlay-frame","cancel-full-overlay-frame-response",(e=>{this.ag(e.boxRect),t()}))}))}getBodyElement(){return O(this.win.document.body)}disconnect(){this.ng&&(this.ng(),this.ng=null)}getScrollWidth(){return this.getScrollingElement().offsetWidth}getScrollHeight(){return this.getScrollingElement().offsetHeight}getContentHeight(){return this.getScrollHeight()}updatePaddingTop(){}hideViewerHeader(){}showViewerHeader(){}disableScroll(){}resetScroll(){}ensureReadyForElements(){}setScrollTop(){}contentHeightChanged(){}getBorderTop(){return 0}requiresFixedLayerTransfer(){return!1}overrideGlobalScrollTo(){return!1}}(t.win);re(t,"viewport",(function(){return new class{constructor(t,e){const{win:i}=t;this.ampdoc=t,this.Pe=e,this.Un=null,this.Wn=new qi,this.wn=new qi,this.bn=new qi,this.Pe.onScroll(this.tr.bind(this)),this.Pe.onResize(this.ir.bind(this)),this.er=!1,this.ampdoc.onVisibilityChanged(this.nr.bind(this)),this.nr(),this.gg=this.dispose.bind(this),i.addEventListener("pagehide",this.gg);const s=i.document.documentElement;s.classList.add("i-amphtml-singledoc"),s.classList.add("i-amphtml-standalone"),Bt(i)&&s.classList.add("i-amphtml-iframed")}dispose(){this.Pe.disconnect(),this.ampdoc.win.removeEventListener("pagehide",this.gg)}ensureReadyForElements(){}getPaddingTop(){return 0}getScrollTop(){return this.Pe.getScrollTop()}getScrollLeft(){return this.Pe.getScrollLeft()}setScrollTop(t){}updatePaddingBottom(t){}getSize(){return this.Pe.getSize()}getHeight(){return this.getSize().height}getWidth(){return this.getSize().width}getScrollWidth(){return this.Pe.getScrollWidth()}getScrollHeight(){return this.Pe.getScrollHeight()}getContentHeight(){return this.Pe.getContentHeight()}contentHeightChanged(){}getRect(){if(null==this.Un){const t=this.getSize();this.Un=Kt(this.getScrollLeft(),this.getScrollTop(),t.width,t.height)}return this.Un}getLayoutRect(t){return this.Pe.getLayoutRect(t)}getClientRectAsync(t){const e=t.getBoundingClientRect();return this.Pe.getRootClientRectAsync().then((t=>t?Jt(e,t.left,t.top):Qt(e)))}supportsPositionFixed(){return!1}isDeclaredFixed(t){return!1}scrollIntoView(t){return s()}animateScrollIntoView(t,e,i,n){return s()}animateScrollWithinParent(t,e,i,n,r){return s()}getScrollingElement(){return this.Pe.getScrollingElement()}onChanged(t){return this.Wn.add(t)}onScroll(t){return this.wn.add(t)}onResize(t){return this.bn.add(t)}enterLightboxMode(t,e){return this.enterOverlayMode(),this.Pe.updateLightboxMode(!0)}leaveLightboxMode(t){return this.leaveOverlayMode(),this.Pe.updateLightboxMode(!1)}enterOverlayMode(){this.disableTouchZoom(),this.disableScroll()}leaveOverlayMode(){this.resetScroll(),this.restoreOriginalTouchZoom()}disableScroll(){}resetScroll(){}resetTouchZoom(){}disableTouchZoom(){return!1}restoreOriginalTouchZoom(){return!1}updateFixedLayer(){return s()}addToFixedLayer(t,e){return s()}removeFromFixedLayer(t){}createFixedLayer(t){}_r(){const t=this.getSize(),e=this.getScrollTop(),i=this.getScrollLeft();this.Wn.fire({relayoutAll:!1,top:e,left:i,width:t.width,height:t.height,velocity:0})}tr(){this.Un=null,this.Pe.getScrollTop()<0||(this._r(),this.wn.fire())}ir(){this.Un=null;const t=this.getSize();this._r(),this.bn.fire({relayoutAll:!1,width:t.width,height:t.height})}nr(){const t=this.ampdoc.isVisible();t!=this.er&&(this.er=t,t?(this.Pe.connect(),this.ir()):this.Pe.disconnect())}}(t,e)}),!0)}function nh(t,e){return t.left!=e.left||t.top!=e.top}function rh(t,e){return t.width!=e.width||t.height!=e.height}function oh(t){th(t.win),function(t){re(t,"url",class{constructor(t){const e=t.getRootNode(),i=e.ownerDocument||e;this.fh=i.createElement("a"),this.ph=null}parse(t,e){return An(this.fh,t)}mh(t){return"string"!=typeof t?t:this.parse(t)}isProtocolValid(t){return Mn(t)}getSourceOrigin(t){return jn(this.mh(t))}getSourceUrl(t){return kn(this.mh(t))}resolveRelativeUrl(t,e){return Vn(t,this.mh(e))}assertHttpsUrl(t,e,i="source"){return En(t,e,i)}assertAbsoluteHttpOrHttpsUrl(t){return function(t){return Et(/^https?\:/i.test(t),'URL must start with "http://" or "https://". Invalid value: %s',t),_n(t).href}(t)}isProxyOrigin(t){return Sn(this.mh(t))}isSecure(t){return wn(this.mh(t))}getWinOrigin(t){return t.origin||this.mh(t.location.href).origin}getCdnUrlOnOrigin(t){if(Sn(t))return t;const{hash:e,host:i,pathname:s,search:n}=this.mh(t),r=encodeURIComponent(i);return`${et}/c/${r}${s}${n}${e}`}},!0)}(t),function(t){re(t,"templates",class{constructor(t){this.Bt=t,this._h={},this.Ah={}}whenReady(t){return this.gh(t).then(zo)}setHtmlForTemplate(t,e){return this.gh(t).then((t=>this.Ph(t,e)))}renderTemplate(t,e){return this.gh(t).then((t=>this.Eh(t,e)))}renderTemplateAsString(t,e){return this.gh(t).then((t=>t.renderAsString(e)))}getTemplateRenderer(t){return this.gh(t).then((t=>({renderAsString:e=>t.renderAsString(e)})))}renderTemplateArray(t,e){return 0==e.length?Promise.resolve([]):this.gh(t).then((t=>e.map((e=>this.Eh(t,e)))))}findAndRenderTemplate(t,e,i){return this.renderTemplate(this.findTemplate(t,i),e)}findAndSetHtmlForTemplate(t,e,i){return this.setHtmlForTemplate(this.findTemplate(t,i),e)}findAndRenderTemplateArray(t,e,i){return this.renderTemplateArray(this.findTemplate(t,i),e)}hasTemplate(t,e){return!!this.maybeFindTemplate(t,e)}findTemplate(t,e){const i=this.maybeFindTemplate(t,e);Et(i,"Template not found for %s",t);const s=i.tagName;return Et("TEMPLATE"==s||"SCRIPT"==s&&"text/plain"===i.getAttribute("type"),'Template must be defined in a <template> or <script type="text/plain"> tag'),i}maybeFindTemplate(t,e){const i=t.getAttribute("template");return i?Ft(t).getElementById(i):e?xt(t,e):t.querySelector('template[type], script[type="text/plain"]')}gh(t){const e=t[Do];if(e)return Promise.resolve(e);let i="";const{tagName:s}=t;"TEMPLATE"==s?i=t.getAttribute("type"):"SCRIPT"==s&&(i=t.getAttribute("template")),Et(i,"Type must be specified: %s",t);let n=t.__AMP_WAIT_;return n||(n=this.Th(t,i).then((e=>{const i=e,s=t[Do]=new i(t,this.Bt.win);return delete t.__AMP_WAIT_,s})),t.__AMP_WAIT_=n,n)}Th(t,e){if(this._h[e])return this._h[e];const i=new n,{promise:s,resolve:r}=i;return this._h[e]=s,this.Ah[e]=r,s}Ih(t,e){if(this._h[t]){const i=this.Ah[t];Et(i,"Duplicate template type: %s",t),delete this.Ah[t],i(e)}else this._h[t]=Promise.resolve(e)}Eh(t,e){return t.render(e)}Ph(t,e){return t.setHtml(e)}})}(t),re(t,"documentInfo",class{constructor(t){this.Bt=t,this.Mh=null,this.Rh=null}get(){if(this.Mh)return this.Mh;const t=this.Bt,e=kn(t.getUrl()),i=t.getRootNode();let s=i&&i.AMP&&i.AMP.canonicalUrl;if(!s){const t=i.querySelector("link[rel=canonical]");s=t?_n(t.href).href:e}const n=function(t){return String(Math.floor(1e4*t.Math.random()))}(t.win),o=function(t){const e=m();if(t.head){const i=t.head.querySelectorAll("link[rel]");for(let t=0;t<i.length;t++){const s=i[t],{href:n}=s,r=s.getAttribute("rel");r&&n&&r.split(/\s+/).forEach((t=>{if(-1!=mo.indexOf(t))return;let i=e[t];i?(y(i)||(i=e[t]=[i]),i.push(n)):e[t]=n}))}}return e}(t.win.document),h=function(t){const e=t.head.querySelector('meta[name="viewport"]');return e?e.getAttribute("content"):null}(t.win.document),a=function(t){if(!t.isSingleDoc()||"a"!=(e=t.win.location.href,Sn(e=vn(e))?e.pathname.split("/",2)[1]:null))return null;var e;const i=W(_n(t.win.location.href).search).amp_r;return void 0===i?null:W(i)}(t);return this.Mh={get sourceUrl(){return kn(t.getUrl())},canonicalUrl:s,pageViewId:n,get pageViewId64(){return this.Rh||(this.Rh=function(t){const e=function(t){return F(t,16)||String(t.location.href+Date.now()+t.Math.random()+t.screen.width+t.screen.height)}(t);if("string"==typeof e)return(i=t,oe(i,"crypto")).sha384Base64(e);var i;{const t=e;return r((()=>uo(t).replace(/\.+$/,"")))}}(t.win)),this.Rh},linkRels:o,viewport:h,replaceParams:a}}}),function(t){re(t,"cid",class{get(){return Promise.resolve(null)}optOut(){}})}(t),function(t){re(t,"viewer",class{constructor(t){this.Bt=t}getAmpDoc(){return this.Bt}getParam(t){return this.Bt.getParam(t)}hasCapability(){return!1}isEmbedded(){return!1}isWebviewEmbedded(){return!1}isCctEmbedded(){return!1}isProxyOrigin(){return!1}maybeUpdateFragmentForCct(){}isRuntimeOn(){return!0}toggleRuntime(){}onRuntimeState(){return()=>{}}isOvertakeHistory(){return!1}getResolvedViewerUrl(){return this.Bt.win.location.href}maybeGetMessagingOrigin(){return null}getUnconfirmedReferrerUrl(){return this.Bt.win.document.referrer}getReferrerUrl(){return Promise.resolve(this.getUnconfirmedReferrerUrl())}isTrustedViewer(){return Promise.resolve(!1)}getViewerOrigin(){return Promise.resolve("")}onMessage(){return()=>{}}onMessageRespond(){return()=>{}}receiveMessage(){}setMessageDeliverer(){}maybeGetMessageDeliverer(){return null}sendMessage(){}sendMessageAwaitResponse(){return s()}broadcast(){return Promise.resolve(!1)}onBroadcast(){return()=>{}}whenMessagingReady(){return null}replaceUrl(){}},!0)}(t),sh(t),function(t){re(t,"hidden-observer",class{constructor(t){this.Eo=t.getRootNode();const e=this.Eo.ownerDocument||this.Eo;this.i=wt(e.defaultView),this.To=null,this.Io=null}add(t){this.Mo();const e=this.Io.add(t);return()=>{e(),0===this.Io.getHandlerCount()&&this.dispose()}}Mo(){if(this.To)return;this.Io=new qi;const t=new this.i.MutationObserver((t=>{t&&this.Io.fire(t)}));this.To=t,t.observe(this.Eo,fo)}dispose(){this.To&&(this.To.disconnect(),this.Io.removeAll(),this.To=null,this.Io=null)}})}(t),function(t){re(t,"history",Ao)}(t),function(t){re(t,"resources",class{constructor(t){this.Bt=t,this.win=t.win,this.Pt=[],this.yo=0,this.Ds=new Nr(this.win,this.vg.bind(this),70),this._g=new qi,this.Xo=new n,this.Ag=null,(t=>oe(this.win,"input"))().setupInputModeClasses(t),"inabox"!=ct(this.win).runtime&&t.onVisibilityChanged((()=>{switch(t.getVisibilityState()){case Bi:this.Pt.forEach((t=>t.pause()));break;case $i:this.Pt.forEach((t=>t.resume())),this.schedulePass()}})),this.jo=[],this.So=!1,this.Bt.whenReady().then((()=>{this.So=!0,this.ru(),this.schedulePass(1)}))}dispose(){this.Pt.forEach((t=>t.unload())),this.Pt.length=0,this.Ag&&(this.Ag.disconnect(),this.Ag=null)}get(){return this.Pt.slice(0)}getAmpdoc(){return this.Bt}getResourceForElement(t){return Gn.forElement(t)}getResourceForElementOptional(t){return Gn.forElementOptional(t)}getScrollDirection(){return 1}add(t){const e=new Gn(++this.yo,t,this);this.Pt.push(e)}upgraded(t){const e=Gn.forElement(t);this.jo.push(e),this.ru()}remove(t){const e=Gn.forElementOptional(t);if(!e)return;this.Ag&&this.Ag.unobserve(t);const i=this.Pt.indexOf(e);-1!==i&&this.Pt.splice(i,1)}scheduleLayoutOrPreload(t){this.Ds.schedule()}schedulePass(t){return this.Ds.schedule(t)}updateOrEnqueueMutateTask(t,e){}schedulePassVsync(){}onNextPass(t){this._g.add(t)}ampInitComplete(){}updateLayoutPriority(t,e){}setRelayoutTop(t){}maybeHeightChanged(){}whenFirstPass(){return this.Xo.promise}vg(){const t=Date.now();this.Pt.forEach((t=>{t.isLayoutPending()&&!t.element.R1()&&t.measure()})),this.Pt.forEach((e=>{!e.element.R1()&&2===e.getState()&&e.isDisplayed()&&(e.layoutScheduled(t),e.startLayout())})),this.Bt.signals().signal(ji),this._g.fire(),this.Xo.resolve()}ru(){for(let t=this.jo.length-1;t>=0;t--){const e=this.jo[t];(this.So||$t(e.element,this.Bt.getRootNode()))&&(this.jo.splice(t,1),(e.build()||s()).then((()=>this.schedulePass())))}}})}(t),function(t){re(t,"owners",class{constructor(t){this.Pt=Ze(t)}setOwner(t,e){Gn.setOwner(t,e)}schedulePreload(t,e){this.wu(this.Pt.getResourceForElement(t),!1,jo(e))}scheduleLayout(t,e){this.wu(this.Pt.getResourceForElement(t),!0,jo(e))}schedulePause(t,e){const i=this.Pt.getResourceForElement(t);e=jo(e),this.bu(i,e,(t=>{t.pause()}))}scheduleResume(t,e){const i=this.Pt.getResourceForElement(t);e=jo(e),this.bu(i,e,(t=>{t.resume()}))}scheduleUnlayout(t,e){const i=this.Pt.getResourceForElement(t);e=jo(e),this.bu(i,e,(t=>{t.unlayout()}))}requireLayout(t,e){const i=[];return this.Vu(t,(t=>{i.push(t.element.ensureLoaded())})),Promise.all(i)}bu(t,e,i){for(const s of e)wt(t.element.contains(s)),this.Vu(s,i)}Vu(t,e){if(t.classList.contains("i-amphtml-element")){e(this.Pt.getResourceForElement(t));const i=t.getPlaceholder();i&&this.Vu(i,e)}else{const i=t.getElementsByClassName("i-amphtml-element"),s=[];for(let t=0;t<i.length;t++){const n=i[t];let r=!1;for(let t=0;t<s.length;t++)if(s[t].contains(n)){r=!0;break}r||(s.push(n),e(this.Pt.getResourceForElement(n)))}}}wu(t,e,i){this.bu(t,i,(e=>{e.element.ensureLoaded(t.getLayoutPriority())}))}})}(t),function(t){re(t,"mutator",class{constructor(t){this.Pt=Ze(t),this._n=ri(t.win)}forceChangeSize(t,e,i,s,n){this.requestChangeSize(t,e,i,n).then((()=>{s&&s()}))}requestChangeSize(t,e,i,s){return this.mutateElement(t,(()=>{this.Pt.getResourceForElement(t).changeSize(e,i,s)}))}expandElement(t){this.Pt.getResourceForElement(t).completeExpand(),this.Pt.schedulePass()}attemptCollapse(t){return this.mutateElement(t,(()=>{this.Pt.getResourceForElement(t).completeCollapse()}))}collapseElement(t){this.Pt.getResourceForElement(t).completeCollapse(),this.Pt.schedulePass()}measureElement(t){return this._n.measurePromise(t)}mutateElement(t,e){return this.measureMutateElement(t,null,e)}measureMutateElement(t,e,i){return this._n.runPromise({measure:()=>{e&&e()},mutate:()=>{i(),this.Pt.schedulePass()}})}})}(t),function(t){re(t,"url-replace",(function(t){return new class{constructor(t,e){this.ampdoc=t,this.Je=e}expandStringSync(t,e,i){return new $o(this.Je,e,void 0,!0,i,!0).expand(t)}expandStringAsync(t,e,i){return new $o(this.Je,e,void 0,void 0,i,!0).expand(t)}expandUrlSync(t,e,i){return this.Nu(t,new $o(this.Je,e,void 0,!0,i).expand(t))}expandUrlAsync(t,e,i,s){return new $o(this.Je,e,void 0,void 0,i,s).expand(t).then((e=>this.Nu(t,e)))}expandInputValueAsync(t){return this.Du(t,!1)}expandInputValueSync(t){return this.Du(t,!0)}Du(t,e){wt("INPUT"==t.tagName&&"hidden"==(t.getAttribute("type")||"").toLowerCase());const i=this.Lu(t);if(!i)return e?t.value:Promise.resolve(t.value);void 0===t["amp-original-value"]&&(t["amp-original-value"]=t.value);const s=new $o(this.Je,void 0,void 0,e,i).expand(t["amp-original-value"]||t.value);return e?t.value=s:s.then((e=>(t.value=e,e)))}Lu(t,e){const i=t.getAttribute("data-amp-replace");if(!i)return;const s={};return i.trim().split(/\s+/).forEach((t=>{e&&!f(e,t)||(s[t]=!0)})),s}Uu(t){const e=qe(this.ampdoc);if(t.origin==_n(e.canonicalUrl).origin||t.origin==_n(e.sourceUrl).origin)return!0;const i=this.ampdoc.getMetaByName("amp-link-variable-allowed-origin");if(i){const e=i.trim().split(/\s+/);for(let i=0;i<e.length;i++)if(t.origin==_n(e[i]).origin)return!0}return!1}maybeExpandLink(t,e){wt("A"==t.tagName);const i=t;let s=i.getAttribute("data-amp-addparams")||"";const n=this.Lu(i,{"CLIENT_ID":!0,"QUERY_PARAM":!0,"PAGE_VIEW_ID":!0,"PAGE_VIEW_ID_64":!0,"NAV_TIMING":!0});if(!n&&!s&&!e)return;let r=i["amp-original-href"]||i.getAttribute("href");const o=_n(r);null==i["amp-original-href"]&&(i["amp-original-href"]=r);const h=this.Uu(o);if(s&&(s=h?this.$u(s,n):s,r=bn(r,W(s))),!h)return i.href=r;if(e){if(!n||!n.QUERY_PARAM){const t={"QUERY_PARAM":!0};e=this.expandUrlSync(e,void 0,t)}r=bn(r,W(e))}return r=this.$u(r,n),i.href=r}$u(t,e){return e?this.expandUrlSync(t,void 0,e):t}collectVars(t,e){const i=Object.create(null);return new $o(this.Je,e,i).expand(t).then((()=>i))}collectDisallowedVarsSync(t){const e=t.getAttribute("src"),i=new $o(this.Je).getMacroNames(e),s=this.Lu(t);return s?i.filter((t=>!s[t])):i}Nu(t,e){return _n(e).protocol!=_n(t).protocol?(Pt().error(Ho,"Illegal replacement of the protocol: ",t),t):(Et(Mn(e),"The replacement url has invalid protocol: %s",e),e)}getVariableSource(){return this.Je}}(t,new class extends class{constructor(t){this.ampdoc=t,this.Fu=Object.create(null),this.Bu=!1,this.Hu()}vs(){this.initialize(),this.Bu=!0}initialize(){}get(t){return this.Bu||this.vs(),this.Fu[t]}set(t,e){return wt(-1==t.indexOf("RETURN")),this.Fu[t]=this.Fu[t]||{sync:void 0,async:void 0},this.Fu[t].sync=e,this}setAsync(t,e){return wt(-1==t.indexOf("RETURN")),this.Fu[t]=this.Fu[t]||{sync:void 0,async:void 0},this.Fu[t].async=e,this}setBoth(t,e,i){return this.set(t,e).setAsync(t,i)}getExpr(t,e){this.Bu||this.vs();const i=_(_({},this.Fu),t);return this.ju(Object.keys(i),e)}ju(t,e){if(this.Hu()&&(t=t.filter((t=>this.Hu().includes(t)))),e&&(t=t.filter((t=>e[t]))),0===t.length)return/_^/g;t.sort(((t,e)=>e.length-t.length));const i=t.map((t=>"$"===t[0]?"\\"+t:t)).join("|");return new RegExp("\\$?("+i+")","g")}Hu(){return this.zu?this.zu:this.ampdoc.isSingleDoc()&&hi(this.ampdoc.getRootNode())?(this.zu=[""],this.zu):void 0}}{constructor(t){super(t),this.Gu=null,this.qu={}}Wu(t,e,i){return this.setBoth(t,(()=>xi(this.ampdoc.win,e,i)),(()=>Ri(this.ampdoc.win,e,i)))}initialize(){const{win:t}=this.ampdoc,e=this.ampdoc.getHeadNode(),i=oi(this.ampdoc);ii(this.ampdoc).then((t=>{this.Gu=t})),this.set("RANDOM",(()=>Math.random()));const n=Object.create(null);this.set("COUNTER",(t=>n[t]=1+(0|n[t]))),this.set("CANONICAL_URL",(()=>this.Ku().canonicalUrl)),this.set("CANONICAL_HOST",(()=>_n(this.Ku().canonicalUrl).host)),this.set("CANONICAL_HOSTNAME",(()=>_n(this.Ku().canonicalUrl).hostname)),this.set("CANONICAL_PATH",(()=>_n(this.Ku().canonicalUrl).pathname)),this.setAsync("DOCUMENT_REFERRER",(()=>ni(this.ampdoc).getReferrerUrl())),this.setAsync("EXTERNAL_REFERRER",(()=>ni(this.ampdoc).getReferrerUrl().then((e=>e?_n(kn(e)).hostname===ls.getHostname(t)?null:e:null)))),this.set("TITLE",(()=>{const e=t.document;return e.originalTitle||e.title})),this.set("AMPDOC_URL",(()=>Tn(this.Yu(t.location.href)))),this.set("AMPDOC_HOST",(()=>{const e=_n(t.location.href);return e&&e.host})),this.set("AMPDOC_HOSTNAME",(()=>{const e=_n(t.location.href);return e&&e.hostname}));const r=()=>{const t=this.Ku();return Tn(this.Yu(t.sourceUrl))};this.setBoth("SOURCE_URL",(()=>r()),(()=>bo().then((()=>r())))),this.set("SOURCE_HOST",(()=>_n(this.Ku().sourceUrl).host)),this.set("SOURCE_HOSTNAME",(()=>_n(this.Ku().sourceUrl).hostname)),this.set("SOURCE_PATH",(()=>_n(this.Ku().sourceUrl).pathname)),this.set("PAGE_VIEW_ID",(()=>this.Ku().pageViewId)),this.setAsync("PAGE_VIEW_ID_64",(()=>this.Ku().pageViewId64)),this.setBoth("QUERY_PARAM",((t,e="")=>this.Ju(t,e)),((t,e="")=>bo().then((()=>this.Ju(t,e))))),this.set("FRAGMENT_PARAM",((t,e="")=>this.Qu(t,e)));let o=null;this.setBoth("CLIENT_ID",(t=>o?o[t]:null),((t,i,n,r)=>{Et(t,"The first argument to CLIENT_ID, the fallback Cookie name, is required");let h=s();return i&&(h=(t=>Ne(t,"userNotificationManager","amp-user-notification"))(e).then((t=>t.get(i)))),Ge(this.ampdoc).then((e=>(r="true"==r,e.get({scope:t,createCookieIfNotPresent:!0,cookieName:n||void 0,disableBackup:r},h)))).then((e=>(o||(o=Object.create(null)),e&&"_ga"==(n||t)&&("string"==typeof e?e=e.replace(/^(GA1|1)\.[\d-]+\./,""):It().error(Ho,"non-string cid, what is it?",Object.keys(e))),o[t]=e,e)))})),this.setAsync("VARIANT",(t=>this.Xu((e=>{const i=e[t];return Et(void 0!==i,"The value passed to VARIANT() is not a valid experiment in <amp-experiment>:"+t),null===i?"none":i}),"VARIANT"))),this.setAsync("VARIANTS",(()=>this.Xu((t=>{const e=[];for(const i in t){const s=t[i];e.push(i+"."+(s||"none"))}return e.join("!")}),"VARIANTS"))),this.setBoth("AMP_GEO",(t=>qo(this.Gu,t)),(t=>this.Zu((e=>qo(e,t)),"AMP_GEO"))),this.set("TIMESTAMP",Bo("getTime")),this.set("TIMESTAMP_ISO",Bo("toISOString")),this.set("TIMEZONE",Bo("getTimezoneOffset")),this.set("SCROLL_HEIGHT",(()=>i.getScrollHeight())),this.set("SCROLL_WIDTH",(()=>i.getScrollWidth())),this.set("VIEWPORT_HEIGHT",(()=>i.getHeight())),this.set("VIEWPORT_WIDTH",(()=>i.getWidth()));const{screen:h}=t;this.set("SCREEN_WIDTH",Go(h,"width")),this.set("SCREEN_HEIGHT",Go(h,"height")),this.set("AVAILABLE_SCREEN_HEIGHT",Go(h,"availHeight")),this.set("AVAILABLE_SCREEN_WIDTH",Go(h,"availWidth")),this.set("SCREEN_COLOR_DEPTH",Go(h,"colorDepth")),this.set("DOCUMENT_CHARSET",(()=>{const e=t.document;return e.characterSet||e.charset})),this.set("BROWSER_LANGUAGE",(()=>{const e=t.navigator;return(e.language||e.userLanguage||e.browserLanguage||"").toLowerCase()})),this.set("USER_AGENT",(()=>t.navigator.userAgent)),this.setBoth("UACH",(t=>{var e;return null!==(e=this.qu[t])&&void 0!==e?e:""}),(e=>this.tl(e,t))),this.Wu("PAGE_LOAD_TIME","navigationStart","loadEventStart"),this.Wu("DOMAIN_LOOKUP_TIME","domainLookupStart","domainLookupEnd"),this.Wu("TCP_CONNECT_TIME","connectStart","connectEnd"),this.Wu("SERVER_RESPONSE_TIME","requestStart","responseStart"),this.Wu("PAGE_DOWNLOAD_TIME","responseStart","responseEnd"),this.Wu("REDIRECT_TIME","navigationStart","fetchStart"),this.Wu("DOM_INTERACTIVE_TIME","navigationStart","domInteractive"),this.Wu("CONTENT_LOAD_TIME","navigationStart","domContentLoadedEventStart"),this.setAsync("ACCESS_READER_ID",(()=>this.il((t=>t.getAccessReaderId()),"ACCESS_READER_ID"))),this.setAsync("AUTHDATA",(t=>(Et(t,"The first argument to AUTHDATA, the field, is required"),this.il((e=>e.getAuthdataField(t)),"AUTHDATA")))),this.setAsync("VIEWER",(()=>ni(this.ampdoc).getViewerOrigin().then((t=>null==t?"":t)))),this.setAsync("TOTAL_ENGAGED_TIME",(()=>Fe(e).then((t=>t.getTotalEngagedTime())))),this.setAsync("INCREMENTAL_ENGAGED_TIME",((t,i)=>Fe(e).then((e=>e.getIncrementalEngagedTime(t,"false"!==i))))),this.set("NAV_TIMING",((e,i)=>(Et(e,"The first argument to NAV_TIMING, the start attribute name, is required"),xi(t,e,i)))),this.setAsync("NAV_TIMING",((e,i)=>(Et(e,"The first argument to NAV_TIMING, the start attribute name, is required"),Ri(t,e,i)))),this.set("NAV_TYPE",(()=>ki(t,"type"))),this.set("NAV_REDIRECT_COUNT",(()=>ki(t,"redirectCount"))),this.set("AMP_VERSION",(()=>"2211060024000")),this.set("BACKGROUND_STATE",(()=>this.ampdoc.isVisible()?"0":"1")),this.setAsync("VIDEO_STATE",((t,e)=>{return(i=this.ampdoc,ae(i,"video-manager")).getVideoStateProperty(t,e);var i})),this.setAsync("AMP_STATE",(t=>{const e=this.ampdoc.getRootNode(),i=e.documentElement||e;return Be(i).then((e=>e&&e.getStateValue(t)||""))}))}Yu(t){const{replaceParams:e}=this.Ku();return e?function(t,e){const i=W(_n(t).search),s={},n=Object.keys(e);for(let t=0;t<n.length;t++)f(i,n[t])||(s[n[t]]=e[n[t]]);return bn(t,s)}(Rn(t),e):t}Ku(){return qe(this.ampdoc)}il(t,e){const i=this.ampdoc.getHeadNode();return Promise.all([De(i),ze(i)]).then((i=>{const s=i[0],n=i[1],r=s||n;return r?s&&n?t(n)||t(s):t(r):(Pt().error(Ho,"Access or subsciptions service is not installed to access: ",e),null)}))}Ju(t,e){Et(t,"The first argument to QUERY_PARAM, the query string param is required");const i=W(_n(Rn(this.ampdoc.win.location.href)).search),{replaceParams:s}=this.Ku();return void 0!==i[t]?i[t]:s&&void 0!==s[t]?s[t]:e}Qu(t,e){Et(t,"The first argument to FRAGMENT_PARAM, the fragment string param is required"),Et("string"==typeof t,"param should be a string");const i=Y(this.ampdoc.win);return void 0===i[t]?e:i[t]}Xu(t,e){return(i=this.ampdoc.getHeadNode(),Le(i,"variant","amp-experiment",!0)).then((t=>(Et(t,"To use variable %s, amp-experiment should be configured",e),t.getVariants()))).then((e=>t(e)));var i}Zu(t,e){return null!==this.Gu?t(this.Gu):ii(this.ampdoc.getHeadNode()).then((i=>(Et(i,"To use variable %s, amp-geo should be configured",e),this.Gu=i,t(i))))}tl(t,e){return t in this.qu?Promise.resolve(this.qu[t]):(null===(i=e.navigator)||void 0===i||null===(s=i.userAgentData)||void 0===s||null===(n=s.getHighEntropyValues([t]))||void 0===n?void 0:n.then((e=>{const i="object"!=typeof e[t]?e[t]:JSON.stringify(e[t]);return this.qu[t]=i,i})))||Promise.resolve("");var i,s,n}}(t))}))}(t),function(t){re(t,"action",class{constructor(t,e){this.ampdoc=t,this.Eo=e||t.getRootNode(),this.sl=this.ampdoc.isSingleDoc()&&hi(this.Eo),this.tn=this.sl?$r:null,this.nl=m(),this.rl=m(),this.addEvent("tap"),this.addEvent("submit"),this.addEvent("change"),this.addEvent("input-debounced"),this.addEvent("input-throttled"),this.addEvent("valid"),this.addEvent("invalid")}addEvent(t){if("tap"==t)this.Eo.addEventListener("click",(e=>{if(!e.defaultPrevented){const i=e.target;this.trigger(i,t,e,3)}})),this.Eo.addEventListener("keydown",(e=>{const{key:i,target:s}=e,n=s;if("Enter"==i||" "==i){const i=n.getAttribute("role"),s=i&&f(Hr,i.toLowerCase());!e.defaultPrevented&&s&&this.trigger(n,t,e,3)&&e.preventDefault()}}));else if("submit"==t)this.Eo.addEventListener(t,(e=>{const i=e.target;this.trigger(i,t,e,3)}));else if("change"==t)this.Eo.addEventListener(t,(e=>{const i=e.target;this.hl(e),this.trigger(i,t,e,3)}));else if("input-debounced"==t){const e=H(this.ampdoc.win,(e=>{const i=e.target;this.trigger(i,t,e,3)}),300);this.Eo.addEventListener("input",(t=>{const i=new qr(t);this.hl(i),e(i)}))}else if("input-throttled"==t){const e=$(this.ampdoc.win,(e=>{const i=e.target;this.trigger(i,t,e,3)}),100);this.Eo.addEventListener("input",(t=>{const i=new qr(t);this.hl(i),e(i)}))}else"valid"!=t&&"invalid"!=t||this.Eo.addEventListener(t,(e=>{const i=e.target;this.trigger(i,t,e,3)}))}addGlobalTarget(t,e){this.nl[t]=e}addGlobalMethodHandler(t,e,i=2){this.rl[t]={handler:e,minTrust:i}}trigger(t,e,i,s,n){return this.ol(t,e,i,s,n)}execute(t,e,i,s,n,r,o){const h=new Br(t,e,i,s,n,r,o);this.ul(h)}installActionHandler(t,e){if(wt(Gr(t.getAttribute("id")||"")||t.tagName.toLowerCase()in Fr),t[Ur])return void It().error(Lr,`Action handler already installed for ${t}`);t[Ur]=e;const i=t[zr];y(i)&&ti(Tt(t)).delay((()=>{i.forEach((t=>{try{e(t)}catch(e){It().error(Lr,"Action execution failed:",t,e)}})),t[zr].length=0}),1)}hasAction(t,e,i){return!!this.ll(t,e,i)}hasResolvableAction(t,e,i){const s=this.ll(t,e,i);return!!s&&s.actionInfos.some((t=>{const{target:e}=t;return!!this.cl(e)}))}hasResolvableActionForTarget(t,e,i,s){const n=this.ll(t,e,s);return!!n&&n.actionInfos.some((t=>{const{target:e}=t;return this.cl(e)==i}))}cl(t){return this.nl[t]?this.Eo:this.Eo.getElementById(t)}setAllowlist(t){wt(t.every((t=>t.tagOrTarget&&t.method))),this.tn=t}addToAllowlist(t,e,i){i&&i.includes("email")!==this.sl||(this.tn||(this.tn=[]),y(e)||(e=[e]),e.forEach((e=>{this.tn.some((i=>i.tagOrTarget==t&&i.method==e))||this.tn.push({tagOrTarget:t,method:e})})))}ol(t,e,i,s,n){const r=this.ll(t,e);if(!r)return!1;const o=Math.random();let h=null;return r.actionInfos.forEach((a=>{const{args:c,method:l,str:u,target:d}=a,p=function(t,e,i){if(!t)return t;const s=i||{};if(e){const t=function(t){return t.detail}(e);t&&(s.event=t)}const n=m();return Object.keys(t).forEach((e=>{let i=t[e];if("object"==typeof i&&i.expression){const t=i.expression,e=function(t,e){if("."==e)return t;const i=e.split(".");let s=t;for(const t of i){if(!(t&&s&&void 0!==s[t]&&"object"==typeof s&&f(s,t))){s=void 0;break}s=s[t]}return s}(s,t);i=void 0===e?null:e}s[i]?n[e]=s[i]:n[e]=i})),n}(c,i,n),g=()=>{const n=this.cl(d);if(!n)return void this.al(`Target "${d}" not found for action [${u}].`);const h=new Br(n,l,p,t,r.node,i,s,e,n.tagName||d,o);return this.ul(h)};h=h?h.then(g):g()})),r.actionInfos.length>=1}al(t,e){if(e){const i=Pt().createError(`[Action] ${t}`);throw Un(i,e),i}Pt().error(Lr,t)}ul(t){const{method:e,tagOrTarget:i}=t;if(this.tn&&!function(t,e){let{method:i}=t;const{node:s,tagOrTarget:n}=t;i===nr&&"function"==typeof s.getDefaultActionAlias&&(i=s.getDefaultActionAlias());const r=i.toLowerCase(),o=n.toLowerCase();return e.some((t=>(t.tagOrTarget.toLowerCase()===o||"*"===t.tagOrTarget)&&t.method.toLowerCase()===r))}(t,this.tn))return this.al(`"${i}.${e}" is not allowlisted ${JSON.stringify(this.tn)}.`),null;const s=this.nl[i];if(s)return s(t);const n=t.node,r=this.rl[e];if(r&&t.satisfiesTrust(r.minTrust))return r.handler(t);const o=n.tagName.toLowerCase();if(Gr(o))return n.enqueAction?n.enqueAction(t):this.al(`Unrecognized AMP element "${o}".`,n),null;const h=Fr[o];if(Gr(n.getAttribute("id")||"")||h&&h.indexOf(e)>-1){const e=n[Ur];return e?e(t):(n[zr]=n[zr]||[],n[zr].push(t)),null}return this.al(`Target (${i}) doesn't support "${e}" action.`,t.caller),null}ll(t,e,i){let s=t;for(;s;){if(i&&s==i)return null;const t=this.dl(s,e);if(t&&!(n=s).disabled&&(":disabled",!n.matches(":disabled")))return{node:s,actionInfos:wt(t)};s=s.parentElement}var n;return null}dl(t,e){const i=this.fl(t,e);return i&&i[e]||null}fl(t,e){let i=t[Dr];return void 0===i&&(i=null,t.hasAttribute("on")?(i=Yr(t.getAttribute("on"),t),t[Dr]=i):t.hasAttribute("execute")&&(i=Yr(`${e}:${t.getAttribute("execute")}`,t),t[Dr]=i)),i}setActions(t,e){t.setAttribute("on",e),delete t[Dr]}hl(t){const e=m(),{target:i}=t;if(void 0!==i.value&&(e.value=i.value),"INPUT"==i.tagName&&(e.valueAsNumber=Number(i.value)),void 0!==i.checked&&(e.checked=i.checked),void 0===i.min&&void 0===i.max||(e.min=i.min,e.max=i.max),i.files&&(e.files=A(i.files).map((t=>({"name":t.name,"size":t.size,"type":t.type})))),Object.keys(e).length>0)try{t.detail=e}catch(t){}}},!0)}(t),function(t){re(t,"standard-actions",class{constructor(t){this.ampdoc=t;const e=t.getHeadNode();this.pl=Ke(t),this.Go=oi(t),this.ml(Ue(e)),this._l()}ml(t){t.addGlobalTarget("AMP",this.Al.bind(this)),t.addGlobalMethodHandler("hide",this.gl.bind(this)),t.addGlobalMethodHandler("show",this.Pl.bind(this)),t.addGlobalMethodHandler("toggleVisibility",this.vl.bind(this)),t.addGlobalMethodHandler("scrollTo",this.El.bind(this)),t.addGlobalMethodHandler("focus",this.Tl.bind(this)),t.addGlobalMethodHandler("toggleClass",this.Il.bind(this)),t.addGlobalMethodHandler("copy",this.Ml.bind(this)),t.addGlobalMethodHandler("toggleChecked",this.Rl.bind(this))}_l(){this.yl()&&this.ampdoc.waitForBodyOpen().then((t=>{const e=t.getAttribute("data-prefers-dark-mode-class")||"amp-dark-mode";t.classList.add(e)}))}yl(){var t,e;try{const t=this.ampdoc.win.localStorage.getItem("amp-dark-mode");if(t)return"yes"===t}catch(t){}return null===(t=(e=this.ampdoc.win).matchMedia)||void 0===t?void 0:t.call(e,"(prefers-color-scheme: dark)").matches}Al(t){if(!t.satisfiesTrust(2))return null;const{args:e,method:i,node:s}=t,n=Tt(s);switch(i){case"pushState":case"setState":const i=s.nodeType===Node.DOCUMENT_NODE?s.documentElement:s;return Be(i).then((e=>(Et(e,"AMP-BIND is not installed."),e.invoke(t))));case"navigateTo":return this.wl(t);case"closeOrNavigateTo":return this.bl(t);case"scrollTo":return Et(e.id,"AMP.scrollTo must provide element ID"),t.node=me(s).getElementById(e.id),this.El(t);case"goBack":return Ye(this.ampdoc).goBack(!(!e||!0!==e.navigate)),null;case"print":return n.print(),null;case"copy":return this.Ml(t);case"optoutOfCid":return Ge(this.ampdoc).then((t=>t.optOut())).catch((t=>{It().error(No,"Failed to opt out of CID",t)}));case"toggleTheme":return this.Vl(),null}throw Pt().createError("Unknown AMP action ",i)}Ml(t){const{args:e,node:i}=t,s=Tt(i),n="copy-error";let r;if("AMP"===t.tagOrTarget)r=e.text.trim();else{var o;const e=O(t.node);r=(null!==(o=e.value)&&void 0!==o?o:e.textContent).trim()}const h=function(t,e,i){const n=bi(s,`${t}`,{data:{type:e}});Ue(i.caller).trigger(i.caller,t,n,3)};var a,c,l;null!==(c=(a=s.document).defaultView)&&void 0!==c&&null!==(l=c.navigator)&&void 0!==l&&l.clipboard||Oo(a)?function(t,e,i,s){var n;null!==(n=t.navigator)&&void 0!==n&&n.clipboard?t.navigator.clipboard.writeText(e).then(i,s):Oo(t.document)&&function(t,e){var i;let s=!1;const n=t.document,r=n.createElement("textarea");ts(r,{"position":"fixed","top":0,"left":0,"width":"50px","height":"50px","padding":0,"border":"none","outline":"none","background":"transparent"}),r.value=e,r.readOnly=!0,r.contentEditable="true",n.body.appendChild(r),null===(i=t.getSelection())||void 0===i||i.removeAllRanges(),r.focus(),r.setSelectionRange(0,e.length);try{s=n.execCommand("copy")}catch(t){}return Dt(r),s}(t,e)?i():s()}(s,r,(()=>{h("copy-success","success",t)}),(()=>{h(n,"error",t)})):h(n,"unsupported",t)}wl(t){const{args:e,caller:i,method:n,node:r}=t,o=Tt(r);let h=s();return i.tagName.startsWith("AMP-")&&(h=i.getImpl().then((t=>{"function"==typeof t.throwIfCannotNavigate&&t.throwIfCannotNavigate()}))),h.then((()=>{var t;(t=this.ampdoc,ae(t,"navigation")).navigateTo(o,e.url,`AMP.${n}`,{target:e.target,opener:e.opener})}),(t=>{Pt().error(No,t)}))}Vl(){this.ampdoc.waitForBodyOpen().then((t=>{try{const e=t.getAttribute("data-prefers-dark-mode-class")||"amp-dark-mode";this.yl()?(t.classList.remove(e),this.ampdoc.win.localStorage.setItem("amp-dark-mode","no")):(t.classList.add(e),this.ampdoc.win.localStorage.setItem("amp-dark-mode","yes"))}catch(t){}}))}bl(t){const{node:e}=t,i=Tt(e),n=i.parent!=i;let r=!1;return i.opener&&this.ampdoc.isSingleDoc()&&!n&&(i.close(),r=i.closed),r?s():this.wl(t)}El(t){const e=t.node,{args:i}=t;let s=i&&i.position,n=i&&i.duration;return s&&!["top","bottom","center"].includes(s)&&(s=void 0),T(n)||(n=void 0),this.Go.animateScrollIntoView(e,s,n)}Tl(t){return Ht(t.node),null}gl(t){const e=t.node;if(e.classList.contains("i-amphtml-element")){const t=e;this.pl.mutateElement(t,(()=>t.collapse()),!0)}else this.pl.mutateElement(e,(()=>es(e,!1)));return null}Pl(t){const{node:e}=t,i=e,s=Tt(i);if(i.classList.contains(js(Ps)))return null;this.pl.measureElement((()=>{"none"==ns(s,i).display&&Co(i)}));const n=(r=i).hasAttribute("autofocus")?r:r.querySelector("[autofocus]");var r;return n&&Je(s).isIos()?(this.Sl(i,n),this.pl.mutateElement(i,(()=>{}))):this.pl.mutateElement(i,(()=>{this.Sl(i,n)})),null}Sl(t,e){t.classList.contains("i-amphtml-element")?t.expand():es(t,!0),e&&Ht(e)}vl(t){return Co(t.node)?this.Pl(t):this.gl(t)}Il(t){const e=t.node,{args:i}=t,s=Pt().assertString(i.class,"Argument 'class' must be a string.");return Lo.test(s)||this.pl.mutateElement(e,(()=>{if(void 0!==i.force){const t=Pt().assertBoolean(i.force,"Optional argument 'force' must be a boolean.");e.classList.toggle(s,t)}else e.classList.toggle(s)})),null}Rl(t){const e=t.node,{args:i}=t;return this.pl.mutateElement(e,(()=>{if(void 0!==(null==i?void 0:i.force)){const t=Pt().assertBoolean(i.force,"Optional argument 'force' must be a boolean.");e.checked=t}else!0===e.checked?e.checked=!1:e.checked=!0})),null}},!0)}(t),function(t,e){var i,s;i=t,s=new Error("Un-supported service: "+e),function(t,e,i){const s=ye(t),n=s[e];n?n.reject&&n.reject(i):(s[e]=we(),s[e].reject(i))}(fe(me(i)),"storage",s)}(t,"storage"),function(t){re(t,wo,Ro,!0)}(t),function(t){t.whenExtensionsKnown().then((()=>{t.declaresExtension("amp-form")&&t.getRootNode().addEventListener("submit",Yo,!0)}))}(t)}var hh,ah,ch="none";function lh(t){return!!t&&-1!=t.toString().indexOf("[native code]")}function uh(t){return void 0===hh&&(e=t||Element,hh=e.prototype.attachShadow?"v1":e.prototype.createShadowRoot?"v0":ch),hh;var e}function dh(t,e,i){var s="";return t&&Array.prototype.forEach.call(t,(function(t){if(t.selectorText&&t.style&&void 0!==t.style.cssText)s+=function(t,e,i){var s=[];return t.split(",").forEach((function(t){t=t.trim(),i&&(t=i(t)),function(t,e){var i=function(t){return t=t.replace(/\[/g,"\\[").replace(/\]/g,"\\]"),new RegExp("^("+t+")"+fh,"m")}(e);return!t.match(i)}(t,e)&&(t=function(t,e){return function(t,e){return t.match(vh)?(t=t.replace(gh,e)).replace(vh,e+" "):e+" "+t}(t,e)}(t,e)),s.push(t)})),s.join(", ")}(t.selectorText,e,i)+" {\n\t",s+=function(t){var e=t.style.cssText;t.style.content&&!t.style.content.match(/['"]+|attr/)&&(e=e.replace(/content:[^;]*;/g,"content: '"+t.style.content+"';"));var i=t.style;for(var s in i)"initial"===i[s]&&(e+=s+": initial; ");return e}(t)+"\n}\n\n";else if(t.type===CSSRule.MEDIA_RULE)s+="@media "+t.media.mediaText+" {\n",s+=dh(t.cssRules,e),s+="\n}\n\n";else try{t.cssText&&(s+=t.cssText+"\n\n")}catch(t){}})),s}var ph="-shadowcsshost",mh=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",fh=(new RegExp("("+ph+mh,"gim"),new RegExp("(-shadowcsscontext"+mh,"gim"),"([>\\s~+[.,{:][\\s\\S]*)?$"),gh=ph+"-no-combinator",vh=new RegExp(ph,"gim"),_h=(new RegExp("-shadowcsscontext","gim"),/[^\.\-\_0-9a-zA-Z]/),Ah=/[^\-\_0-9a-zA-Z]/;function yh(t){const e=Tt(t),i=t.shadowRoot||t.__AMP_SHADOW_ROOT;if(i)return i.innerHTML="",i;let s;const n=uh();if("v1"==n?(s=t.attachShadow({mode:"open"}),s.styleSheets||Object.defineProperty(s,"styleSheets",{get:function(){const t=[];return s.childNodes.forEach((e=>{"STYLE"===e.tagName&&t.push(e.sheet)})),t}})):s="v0"==n?t.createShadowRoot():function(t){const e=t.ownerDocument;t.classList.add("i-amphtml-shadow-host-polyfill");const i=e.createElement("style");i.textContent=".i-amphtml-shadow-host-polyfill>:not(i-amphtml-shadow-root){display:none!important}",t.appendChild(i);const s=e.createElement("i-amphtml-shadow-root");return t.appendChild(s),t.__AMP_SHADOW_ROOT=s,Object.defineProperty(t,"shadowRoot",{enumerable:!0,configurable:!0,value:s}),s.host=t,s.getElementById=function(t){const e=Mt(t);return s.querySelector(`#${e}`)},Object.defineProperty(s,"styleSheets",{get:()=>e.styleSheets?A(e.styleSheets).filter((t=>s.contains(t.ownerNode))):[]}),s}(t),void 0===ah&&(ah=uh()!=ch&&(lh(Element.prototype.attachShadow)||lh(Element.prototype.createShadowRoot))),!ah){const t=`i-amphtml-sd-${e.Math.floor(1e4*e.Math.random())}`;s.id=t,s.host.classList.add(t),r=t=>function(t,e){return function(t,e){const i=wt(t.id),s=t.ownerDocument;let n=null;try{n=Ih(s.implementation.createHTMLDocument(""),e)}catch(t){}if(!n)try{n=Ih(s,e)}catch(t){}return n?dh(n,`.${i}`,Ph):e}(t,e)}(s,t),s.__AMP_CSS_TR=r}var r;return s}function Ph(t){return t.replace(/(html|body)/g,bh)}function bh(t,e,i,s){const n=s.charAt(i-1),r=s.charAt(i+t.length);return n&&!_h.test(n)||r&&!Ah.test(r)?t:"amp-"+t}function Ih(t,e){const i=t.createElement("style");i.textContent=e;try{return(t.head||t.documentElement).appendChild(i),i.sheet?i.sheet.cssRules:null}finally{i.parentNode&&i.parentNode.removeChild(i)}}function wh(t,e,i){const s=self.document.createElement("style");s.textContent=i;const n=yh(t);return n.appendChild(s),n.appendChild(e),t}var Eh="amp4ads-vars-",Th=["cta-accent-color","cta-accent-element","cta-image","theme"];function Sh(t){const e=t.document;if(!e.fonts||!e.fonts.values)return;const i=e.fonts.values();let s;for(;s=i.next();){const t=s.value;if(!t)return;"loading"==t.status&&"display"in t&&"auto"==t.display&&(t.display="swap")}}var Mh,Rh=["amp-ad","amp-embed","amp-video"],xh="extensions",kh="latest",jh="__AMP_EXT_LDR";function Vh(t){Rh.forEach((e=>{Er(t,e)}))}function Oh(){return{}}function Ch(t,e){return`${t}:${e}`}At=class{constructor(t,e,i=""){this.win=t,this.hc=e,this.oc=this.uc(),this.lc=i,this.cc=null,this.ac=function(t){let e=!1,i=null,s=t;return(...t)=>(e||(i=s.apply(self,t),e=!0,s=null),i)}((()=>{t.fetch(`${et}/rtv/012211060024000/log-messages.simple.json`).then((t=>t.json()),dt).then((t=>{t&&(this.cc=t)}))})),this.dc=this.assert.bind(this)}uc(){var t;const{win:e}=this;return null!==(t=e.console)&&void 0!==t&&t.log&&0!=vt(e)?this.fc():0}fc(t){return this.hc(vt(t),!1)}mc(t,e,i){var s,n;if(e>(null!==(s=pt)&&void 0!==s?s:this.oc))return!1;const r=this.win.console,o=null!==(n={1:r.error,3:r.info,2:r.warn}[e])&&void 0!==n?n:r.log,h=this._c(i),a=`[${t}]`;return w(h[0])?h[0]=a+" "+h[0]:h.unshift(a),o.apply(r,h),!0}fine(t,...e){this.mc(t,4,e)}info(t,...e){this.mc(t,3,e)}warn(t,...e){this.mc(t,2,e)}error(t,...e){if(!this.mc(t,1,e)){var i,s;const n=this.createError.apply(this,e);n.name=t||n.name,null===(i=(s=self).__AMP_REPORT_ERROR)||void 0===i||i.call(s,n)}}expectedError(t,...e){var i,s;this.mc(t,1,e)||null===(i=(s=self).__AMP_REPORT_ERROR)||void 0===i||i.call(s,this.createExpectedError.apply(this,e))}createError(t){return this.Ac(h.apply(null,arguments))}createExpectedError(t){return this.Ac(l.apply(null,arguments))}Ac(t){return t=o(t),this.lc?t.message?-1==t.message.indexOf(this.lc)&&(t.message+=this.lc):t.message=this.lc:x(t.message)&&(t.message=t.message.replace(S,"")),t}_c(t){return y(t[0])?this.gc(t[0]):t}gc(t){var e;const i=t.shift();return null!==(e=this.cc)&&void 0!==e&&e[i]?[this.cc[i]].concat(t):[`More info at ${ft(i,t)}`]}assert(t,e,i){return y(e)?this.assert.apply(this,[t].concat(this.gc(e))):k.apply(null,[this.lc].concat(Array.prototype.slice.call(arguments)))}assertElement(t,e){return function(t,e,i){return j(t,e,E(e),"Element expected",i)}(this.dc,t,e)}assertString(t,e){return function(t,e,i){return j(t,e,w(e),"String expected",i)}(this.dc,t,e)}assertNumber(t,e){return function(t,e,i){return j(t,e,"number"==typeof e,"Number expected",i)}(this.dc,t,e)}assertArray(t,e){return function(t,e,i){return j(t,e,y(e),"Array expected",i)}(this.dc,t,e)}assertBoolean(t,e){return function(t,e,i){return j(t,e,!!e===e,"Boolean expected",i)}(this.dc,t,e)}},It(),Pt(),Mh=function(t,e,i){Un(e,i),e&&t&&x(e.message)&&!(e.message.indexOf(M)>=0)&&function(t,e){if(He(e).isSingleDoc()){const i={"errorName":t.name,"errorMessage":t.message};!function(t,e,i={},s=!0){var n;(n=t,Le(n,"amp-analytics-instrumentation","amp-analytics")).then((n=>{n&&n.triggerEventForTarget(t,e,i,s)}))}(function(t){const e=He(t).getSingleDoc().getRootNode();return e.documentElement||e.body||e}(e),"user-error",i,!1)}}(e,t)}.bind(null,self),self.__AMP_REPORT_ERROR=Mh;var Nh,Lh="runtime";function Dh(t,e){if(t.__AMP_TAG)return s();t.__AMP_TAG=!0;const i=t.AMP||[];ne(t,"extensions",class{constructor(t){this.win=t,this.Ir=He(t),this.Ec={},this.Tc=null,this.Ic=null,this.Mc=null}registerExtension(t,e,i,s,n){var r;const o=i?this.Ec[Ch(t,kh)]:null,h=this.Rc(t,e,null===(r=null==o?void 0:o.auto)||void 0===r||r);if(h.latest=i,!h.loaded){i&&(this.Ec[Ch(t,kh)]=h);try{var a,c;this.Tc=t,this.Ic=e,this.Mc=i,s(n,n._),h.loaded=!0,null===(a=h.resolve)||void 0===a||a.call(h,h.extension),null==o||null===(c=o.resolve)||void 0===c||c.call(o,h.extension)}catch(t){var l,u;throw h.error=t,null===(l=h.reject)||void 0===l||l.call(h,t),null==o||null===(u=o.reject)||void 0===u||u.call(o,t),t}finally{this.Tc=null,this.Ic=null,this.Mc=null}}}waitForExtension(t,e){const i=this.yc(this.Rc(t,e));return ti(this.win).timeoutPromise(16e3,i).catch((e=>{if(!e.message.includes("timeout"))throw e;return Pt().error(xh,`Waited over 16s to load extension ${t}.`),i}))}preloadExtension(t,e="0.1"){"amp-embed"==t&&(t="amp-ad");const i=this.Rc(t,e);return this.wc(t,e,i),this.yc(i)}installExtensionForDoc(t,e,i="0.1"){const s=t.getRootNode();let n=s[jh];return n||(n=s[jh]=m()),n[e]?n[e]:(t.declareExtension(e,i),Er(t.win,e),n[e]=this.preloadExtension(e,i).then((()=>this.installExtensionInDoc(t,e,i))))}reloadExtension(t,e,i){const s=Oe(this.win,t,e,i,!1),n=this.Ec[Ch(t,e)];return n&&(wt(!n.loaded&&!n.error),n.scriptPresent=!1),s.forEach((e=>e.setAttribute("i-amphtml-loaded-new-version",t))),this.preloadExtension(t,e)}importUnwrapped(t,e,i="0.1",s=!0){const n=Oe(t,e,i,s);let r,o=n.length>0?n[0]:null;return o?r=o.__AMP_SCR_LOADED:(o=Ve(this.win,e,i),r=o.__AMP_SCR_LOADED=new Promise(((t,e)=>{o.onload=t,o.onerror=e})),t.document.head.appendChild(o)),r}loadElementClass(t,e="0.1"){return this.preloadExtension(t,e).then((e=>wt(e.elements[t]).implementationClass))}addElement(t,e,i){this.bc(t).extension.elements[t]={implementationClass:e,css:i},this.addDocFactory((s=>{this.Vc(s,t,e,i)}))}addTemplate(t,e){this.addDocFactory((i=>{!function(t,e,i){ae(t,"templates").Ih(e,i)}(i,t,e)}))}Vc(t,e,i,s){s?an(t,s,(()=>{this.Sc(t.win,e,i)}),!1,e):this.Sc(t.win,e,i)}Sc(t,e,i){(function(t,e,i){const s=function(t,e){if(e.requiresShadowDom()&&!t.Element.prototype.attachShadow)return We(t).importUnwrapped(t,"amp-shadow-dom-polyfill")}(t,i);s?s.then((()=>br(t,e,i))):br(t,e,i)})(t,e,i),ne(t,e,Oh)}addService(t,e){this.bc(t).extension.services.push({serviceName:t,serviceClass:e}),this.addDocFactory((i=>{re(i,t,e,!0)}))}addDocFactory(t,e){const i=this.bc(e);if(i.docFactories.push(t),this.Tc&&this.Ir.isSingleDoc()){const e=this.Ir.getAmpDoc(this.win.document),s=this.Tc,n=this.Ic,r=this.Mc||!1;(e.declaresExtension(s,n)||r&&e.declaresExtension(s,kh)||i.auto)&&t(e)}}preinstallEmbed(t,e){const i=this.win,s=t.win;!function(t,e){Tr(t,e,"amp-img"),Tr(t,e,"amp-pixel")}(i,s),Vh(s),e.forEach((({extensionId:e,extensionVersion:i})=>{t.declareExtension(e,i),Rh.includes(e)||Er(s,e)}))}installExtensionsInDoc(t,e){return Promise.all(e.map((({extensionId:e,extensionVersion:i})=>this.installExtensionInDoc(t,e,i))))}installExtensionInDoc(t,e,i="0.1"){return t.declareExtension(e,i),this.yc(this.Rc(e,i)).then((()=>{this.Rc(e,i).docFactories.forEach((i=>{try{i(t)}catch(t){c("Doc factory failed: ",t,e)}}))}))}Rc(t,e,i){const s=Ch(t,e);let n=this.Ec[s];return n||(n={version:e,latest:e==kh,extension:{elements:{},services:[]},auto:i||!1,docFactories:[],promise:void 0,resolve:void 0,reject:void 0,loaded:void 0,error:void 0,scriptPresent:void 0},this.Ec[s]=n),n}bc(t){return this.Tc||It().error(xh,"unknown extension for ",t),this.Rc(this.Tc||"_UNKNOWN_",this.Ic||"")}yc(t){if(!t.promise)if(t.loaded)t.promise=Promise.resolve(t.extension);else if(t.error)t.promise=Promise.reject(t.error);else{const e=new n;t.promise=e.promise,t.resolve=e.resolve,t.reject=e.reject}return t.promise}wc(t,e,i){if(this.xc(t,e,i)){const s=Ve(this.win,t,e);this.win.document.head.appendChild(s),i.scriptPresent=!0}}xc(t,e,i){if(i.loaded||i.error)return!1;if(void 0===i.scriptPresent){const s=Oe(this.win,t,e,i.latest);i.scriptPresent=s.length>0}return!i.scriptPresent}});const r=We(t);Xo(t),Vh(t),t.AMP={win:t,"_":t.AMP?t.AMP._:void 0},t.AMP.config={urls:{thirdParty:X,thirdPartyFrameHost:Z,thirdPartyFrameRegex:tt,cdn:et,cdnProxyRegex:Q,localhostRegex:it,errorReporting:st,betaErrorReporting:nt,localDev:rt,trustedViewerHosts:ot,geoApi:ht}},t.AMP.BaseElement=rr,t.AMP.registerElement=r.addElement.bind(r),t.AMP.registerTemplate=r.addTemplate.bind(r),t.AMP.registerServiceForDoc=r.addService.bind(r),t.AMP.isExperimentOn=Se.bind(null,t),t.AMP.toggleExperiment=Me.bind(null,t),t.AMP.setLogLevel=mt.bind(null),t.AMP.setTickFunction=(t,e)=>{};const o=e(t,r);function h(e){!function(t,e,i){"function"==typeof e||"high"==e.p?s().then(i):(i.displayName=e.n,Zn(t.document,i))}(t,e,(()=>{o.then((()=>{"function"==typeof e?e(t.AMP,t.AMP.Oc):r.registerExtension(e.n,e.ev,e.l,e.f,t.AMP)}))}))}for(let e=0;e<i.length;e++){const s=i[e];if(zh(t,s))i.splice(e--,1);else if("function"==typeof s||"high"==s.p){try{h(s)}catch(t){It().error(Lh,"Extension failed: ",t,s.n)}i.splice(e--,1)}}!function(t,e){t.document.body&&!function(t){return hn(t).length>0}(t)?ti(t).delay(e,1):e()}(t,(()=>{t.AMP.push=function(e){zh(t,e)||h(e)};for(let e=0;e<i.length;e++){const s=i[e];if(!zh(t,s))try{h(s)}catch(t){It().error(Lh,"Extension failed: ",t,s.n)}}i.length=0})),t.AMP.push||(t.AMP.push=i.push.bind(i)),Je(t).isIos()&&Zi(t.document.documentElement,"cursor","pointer");const a=We(t);return ee(t)&&a.preloadExtension("amp-resize-observer-polyfill"),Xt(t)&&a.preloadExtension("amp-intersection-observer-polyfill"),o}function zh(t,e){if("function"==typeof e)return!1;if(!e.m)return!0;const{v:i}=e;return"2211060024000"!=i&&(We(t).reloadExtension(e.n,e.ev,e.l),!0)}ct(self).runtime="inabox",ct(self).a4aId=function(t){const e=self.document.head.querySelector('meta[name="amp4ads-id"]');return e?e.getAttribute("content"):null}();try{!function(t){t.onerror=Hn,t.addEventListener("unhandledrejection",(t=>{!t.reason||t.reason.message!==Nn&&t.reason.message!==Ln&&"AbortError"!==t.reason.message?Un(t.reason||new Error("rejected promise "+t)):t.preventDefault()}))}(self),function(t,e,i){ne(t,"ampdoc",(function(){return new class{constructor(t,e,i){this.win=t,this.Pc=null,e&&(this.Pc=new vs(t,{params:ys(t,i)}),t.document.__AMPDOC=this.Pc)}isSingleDoc(){return!!this.Pc}getSingleDoc(){return wt(this.Pc)}vc(t){return t.everAttached&&"function"==typeof t.getAmpDoc?t.getAmpDoc():null}getAmpDocIfAvailable(t){let e=t;for(;e;){const i=this.vc(t);if(i)return i;const s=Ft(e);if(!s)break;const n=s.__AMPDOC;if(n)return n;e=s.host?s.host:pe(s,this.win)}return null}getAmpDoc(t){const e=this.getAmpDocIfAvailable(t);if(!e)throw It().createError("No ampdoc found for",t);return e}installShadowDoc(t,e,i){wt(!e.__AMPDOC);const s=new _s(this.win,t,e,i);return e.__AMPDOC=s,s}installFieDoc(t,e,i){const s=e.document;wt(!s.__AMPDOC);const n=wt(e.frameElement),r=new As(e,t,this.getAmpDoc(n),i);return s.__AMPDOC=r,r}}(t,!0,void 0)}))}(self),Nh=He(self)}catch(t){throw un(self.document),t}Jn=!0,Zn(self.document,(function(){const t=Nh.getAmpDoc(self.document);Vo(self),ne(self,"performance",class{constructor(t){this.win=t,this.yg=uo(F(t,16)),this.Pg=[],this.bg=t.performance.timeOrigin||t.performance.timing.navigationStart,this.Bt=null,this.qs=null,this.Pt=null,this.Ig=null,this.wg=!1,this.Eg=!1,this.Tg=m(),this.Sg=void 0,this.Mg=new Wi,this.Rg=0,this.xg=[],this.kg=0;const e=this.win.PerformanceObserver&&this.win.PerformanceObserver.supportedEntryTypes||[];if(e.includes("paint")||this.Mg.rejectSignal("fcp",It().createExpectedError("First Contentful Paint not supported")),this.jg=e.includes("layout-shift"),!this.jg){const t=It().createExpectedError("Cumulative Layout Shift not supported");this.Mg.rejectSignal(Ni,t),this.Mg.rejectSignal(Di,t)}this.Vg=e.includes("first-input"),this.Vg||this.Mg.rejectSignal("fid",It().createExpectedError("First Input Delay not supported")),this.Og=e.includes("largest-contentful-paint"),this.Og||this.Mg.rejectSignal("lcp",It().createExpectedError("Largest Contentful Paint not supported")),this.Cg=e.includes("navigation"),this.Ng=this.Ng.bind(this),this.addEnabledExperiment("rtv-"+ct(this.win).rtvVersion),_i(t.document).then((()=>{this.tick("dr"),this.flush()})),Ai(t.document).then((()=>this.Lg())),this.Dg(),this.zg=!1,this.Ug=H(t,(()=>{this.Fg()}),6e3)}coreServicesAvailable(){const{documentElement:t}=this.win.document;this.Bt=$e(t),this.qs=ni(t),this.Pt=Ze(t),this.Ig=qe(this.Bt),this.Eg=this.qs.isEmbedded()&&"1"===this.qs.getParam("csi"),this.Bt.onVisibilityChanged(this.flush.bind(this)),this.$g();const e=this.qs.whenMessagingReady();return this.Bt.whenFirstVisible().then((()=>{this.tick("ofv"),this.flush()})),(this.Og||this.jg)&&this.Bt.onVisibilityChanged(this.Ng),e?e.then((()=>{this.tickDelta("msr",this.win.performance.now()),this.tick("timeOrigin",void 0,this.bg);const t=this.Bt.getMetaByName("amp-usqp");return t&&t.split(",").forEach((t=>{this.addEnabledExperiment("ssr-"+t)})),this.Hg()})).then((()=>{this.wg=!0,this.Bg(),this.flush()})):s()}Hg(){return(t=He(this.win).getSingleDoc(),t.waitForBodyOpen().then((()=>{const e=t.getBody(),i=(s=e,n=()=>!!e.firstElementChild,new Promise((t=>{Nt(s,n,t)})));var s,n;return ti(t.win).timeoutPromise(2e3,i).then((()=>"AMP-STORY"===e.firstElementChild.tagName),(()=>!1))}))).then((t=>{t&&this.addEnabledExperiment("story")}));var t}Lg(){this.tick("ol"),this.flush()}Dg(){if("inabox"===ct(this.win).runtime)return;let t=!1,e=!1,i=!1,s=!1;const n=n=>{if("first-paint"!=n.name||t)if("first-contentful-paint"!=n.name||e)if("first-input"!==n.entryType||i)"layout-shift"===n.entryType?n.hadRecentInput||(this.Gg(n),this.kg+=n.value):"largest-contentful-paint"===n.entryType?this.qg(n):"navigation"!=n.entryType||s||(["domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","loadEventEnd","loadEventStart","requestStart","responseStart"].forEach((t=>this.tick(t,n[t]))),s=!0);else{const t=n.processingStart-n.startTime;this.tickDelta("fid",t),i=!0}else{const t=n.startTime+n.duration;this.tickDelta("fcp",t),this.tickSinceVisible("fcpv",t),e=!0}else this.tickDelta("fp",n.startTime+n.duration),t=!0},r=[];this.win.PerformancePaintTiming&&(this.win.performance.getEntriesByType("paint").forEach(n),r.push("paint")),this.Vg&&this.Wg(n,{type:"first-input",buffered:!0}),this.jg&&this.Wg(n,{type:"layout-shift",buffered:!0}),this.Og&&this.Wg(n,{type:"largest-contentful-paint",buffered:!0}),this.Cg&&this.Wg(n,{type:"navigation",buffered:!0}),r.length>0&&this.Wg(n,{entryTypes:r})}Wg(t,e){try{new this.win.PerformanceObserver((e=>{e.getEntries().forEach(t),this.flush()})).observe(e)}catch(t){}}Yg(){const t=this.Bt.getVisibilityState();return t===Gi||t===Hi}Ng(){this.Yg()&&(this.Kg(),this.Fg())}Qg(){if(!this.zg){this.zg=!0;const{win:t}=this,e=parseInt(ns(t,t.document.body).getPropertyValue("--google-font-exp"),10);e>=0&&this.addEnabledExperiment(`google-font-exp=${e}`)}}Kg(){this.jg&&(this.Qg(),this.Jg())}Gg(t){if(!this.Bt)return;if(this.Yg())return;const e=this.xg;if(e.length>0){const i=e[0],s=e[e.length-1];if(t.startTime-s.startTime<1e3&&t.startTime-i.startTime<5e3)return void e.push(t);this.Fg()}e.push(t),this.Ug()}Fg(){const t=this.xg,e=this.Mg.get(Ni);let i=0,s=0;for(const e of t){if(e.sources)for(const t of e.sources)i|=Zo(t.node);s+=e.value}t.length=0,this.Qg(),(null==e||s>e)&&(this.Mg.reset(Ni),this.Mg.reset(Li),this.tickDelta(Ni,s),this.tickDelta(Li,i),this.flush())}Jg(){0===this.Rg?(this.tickDelta(Di,this.kg),this.flush(),this.Rg=1):1===this.Rg&&(this.tickDelta("cls-2",this.kg),this.flush(),this.Rg=2)}qg(t){const{element:e,startTime:i}=t,s=Zo(e);this.tickDelta("lcpt",s),this.tickDelta("lcp",i),this.tickSinceVisible("lcpv",i),this.flush()}$g(){const t=!this.Bt.hasBeenVisible();let e=-1;this.Bt.whenFirstVisible().then((()=>{e=this.win.performance.now(),this.mark("visible")})),this.Xg().then((()=>{if(t){const t=e>-1?this.win.performance.now()-e:0;this.Bt.whenFirstVisible().then((()=>{this.tickDelta(zi,t)})),this.Zg(t),this.mark(zi)}else this.tick(zi),this.Zg(this.win.performance.now()-e);this.flush()}))}Xg(){return this.Pt.whenFirstPass().then((()=>{const{documentElement:t}=this.win.document,e=oi(t).getSize();return Kt(0,0,e.width,e.height),i=t,this.win,function(t,e){const i=$e(t);return i.signals().whenSignal(ji).then((()=>{const t=Ze(i).get().filter((t=>!(!t.prerenderAllowed()||Vi.includes(t.element.tagName)))).map((t=>t.element));return 0===t.length?Promise.resolve([]):new Promise((e=>{const{win:s}=i,n=new s.IntersectionObserver((t=>{n.disconnect();const i=[];for(let e=0;e<t.length;e++){const{isIntersecting:s,target:n}=t[e];s&&i.push(n)}e(i)}),{root:Bt(s)?s.document:null,threshold:.01});for(let e=0;e<Math.min(t.length,100);e++)n.observe(t[e])})).then((t=>Promise.all(t.map((t=>t.whenLoaded())))))}))}(i);var i}))}tick(t,e,i){wt(null==e||null==i);const s={"label":t};let n;null!=e?s.delta=n=Math.max(e,0):null!=i?s.value=i:(this.mark(t),n=this.win.performance.now(),s.value=this.bg+n),this.win.dispatchEvent(bi(this.win,"perf",{label:t,delta:n})),this.wg&&this.Eg?this.qs.sendMessage("tick",s):this.tv(s),this.Mg.signal(t,n)}mark(t){var e,i;null===(e=(i=this.win.performance).mark)||void 0===e||e.call(i,t)}tickDelta(t,e){this.tick(t,e)}tickSinceVisible(t,e){var i,s;const n=null==e?this.win.performance.now():e,r=this.bg+n,o=null!==(i=this.qs)&&void 0!==i&&i.isEmbedded()?null===(s=this.Bt)||void 0===s?void 0:s.getFirstVisibleTime():this.bg,h=o?Math.max(r-o,0):0;this.tickDelta(t,h)}flush(){this.wg&&this.Eg&&(null==this.Sg&&(this.Sg=Object.keys(this.Tg).join(",")),this.qs.sendMessage("sendCsi",{"ampexp":this.Sg,"canonicalUrl":this.Ig.canonicalUrl,"eventid":this.yg},!0))}addEnabledExperiment(t){this.Tg[t]=!0,this.Sg=void 0}tv(t){this.Pg.length>=50&&this.Pg.shift(),this.Pg.push(t)}Bg(){this.qs&&(this.Eg?(this.Pg.forEach((t=>{this.qs.sendMessage("tick",t)})),this.Pg.length=0):this.Pg.length=0)}Zg(t){this.qs&&this.qs.sendMessage("prerenderComplete",{"value":t},!0)}isPerformanceTrackingOn(){return this.Eg}getMetric(t){return this.Mg.whenSignal(t)}});const e=Qe(self);e.tick("is"),self.document.documentElement.classList.add("i-amphtml-inabox"),an(t,"[hidden]{display:none!important}.i-amphtml-element{display:inline-block}.i-amphtml-blurry-placeholder{transition:opacity 0.3s cubic-bezier(0.0,0.0,0.2,1)!important;pointer-events:none}[layout=nodisplay]:not(.i-amphtml-element){display:none!important}.i-amphtml-layout-fixed,[layout=fixed][width][height]:not(.i-amphtml-layout-fixed){display:inline-block;position:relative}.i-amphtml-layout-responsive,[layout=responsive][width][height]:not(.i-amphtml-layout-responsive),[width][height][heights]:not([layout]):not(.i-amphtml-layout-responsive),[width][height][sizes]:not(img):not([layout]):not(.i-amphtml-layout-responsive){display:block;position:relative}.i-amphtml-layout-intrinsic,[layout=intrinsic][width][height]:not(.i-amphtml-layout-intrinsic){display:inline-block;position:relative;max-width:100%}.i-amphtml-layout-intrinsic .i-amphtml-sizer{max-width:100%}.i-amphtml-intrinsic-sizer{max-width:100%;display:block!important}.i-amphtml-layout-container,.i-amphtml-layout-fixed-height,[layout=container],[layout=fixed-height][height]:not(.i-amphtml-layout-fixed-height){display:block;position:relative}.i-amphtml-layout-fill,.i-amphtml-layout-fill.i-amphtml-notbuilt,[layout=fill]:not(.i-amphtml-layout-fill),body noscript>*{display:block;overflow:hidden!important;position:absolute;top:0;left:0;bottom:0;right:0}body noscript>*{position:absolute!important;width:100%;height:100%;z-index:2}body noscript{display:inline!important}.i-amphtml-layout-flex-item,[layout=flex-item]:not(.i-amphtml-layout-flex-item){display:block;position:relative;-ms-flex:1 1 auto;flex:1 1 auto}.i-amphtml-layout-fluid{position:relative}.i-amphtml-layout-size-defined{overflow:hidden!important}.i-amphtml-layout-awaiting-size{position:absolute!important;top:auto!important;bottom:auto!important}i-amphtml-sizer{display:block!important}@supports (aspect-ratio:1/1){i-amphtml-sizer.i-amphtml-disable-ar{display:none!important}}.i-amphtml-blurry-placeholder,.i-amphtml-fill-content{display:block;height:0;max-height:100%;max-width:100%;min-height:100%;min-width:100%;width:0;margin:auto}.i-amphtml-layout-size-defined .i-amphtml-fill-content{position:absolute;top:0;left:0;bottom:0;right:0}.i-amphtml-replaced-content,.i-amphtml-screen-reader{padding:0!important;border:none!important}.i-amphtml-screen-reader{position:fixed!important;top:0px!important;left:0px!important;width:4px!important;height:4px!important;opacity:0!important;overflow:hidden!important;margin:0!important;display:block!important;visibility:visible!important}.i-amphtml-screen-reader~.i-amphtml-screen-reader{left:8px!important}.i-amphtml-screen-reader~.i-amphtml-screen-reader~.i-amphtml-screen-reader{left:12px!important}.i-amphtml-screen-reader~.i-amphtml-screen-reader~.i-amphtml-screen-reader~.i-amphtml-screen-reader{left:16px!important}.i-amphtml-unresolved{position:relative;overflow:hidden!important}.i-amphtml-select-disabled{-webkit-user-select:none!important;-ms-user-select:none!important;user-select:none!important}.i-amphtml-notbuilt,[layout]:not(.i-amphtml-element),[width][height][heights]:not([layout]):not(.i-amphtml-element),[width][height][sizes]:not(img):not([layout]):not(.i-amphtml-element){position:relative;overflow:hidden!important;color:transparent!important}.i-amphtml-notbuilt:not(.i-amphtml-layout-container)>*,[layout]:not([layout=container]):not(.i-amphtml-element)>*,[width][height][heights]:not([layout]):not(.i-amphtml-element)>*,[width][height][sizes]:not([layout]):not(.i-amphtml-element)>*{display:none}amp-img:not(.i-amphtml-element)[i-amphtml-ssr]>img.i-amphtml-fill-content{display:block}.i-amphtml-notbuilt:not(.i-amphtml-layout-container),[layout]:not([layout=container]):not(.i-amphtml-element),[width][height][heights]:not([layout]):not(.i-amphtml-element),[width][height][sizes]:not(img):not([layout]):not(.i-amphtml-element){color:transparent!important;line-height:0!important}.i-amphtml-ghost{visibility:hidden!important}.i-amphtml-element>[placeholder],[layout]:not(.i-amphtml-element)>[placeholder],[width][height][heights]:not([layout]):not(.i-amphtml-element)>[placeholder],[width][height][sizes]:not([layout]):not(.i-amphtml-element)>[placeholder]{display:block;line-height:normal}.i-amphtml-element>[placeholder].amp-hidden,.i-amphtml-element>[placeholder].hidden{visibility:hidden}.i-amphtml-element:not(.amp-notsupported)>[fallback],.i-amphtml-layout-container>[placeholder].amp-hidden,.i-amphtml-layout-container>[placeholder].hidden{display:none}.i-amphtml-layout-size-defined>[fallback],.i-amphtml-layout-size-defined>[placeholder]{position:absolute!important;top:0!important;left:0!important;right:0!important;bottom:0!important;z-index:1}amp-img[i-amphtml-ssr]:not(.i-amphtml-element)>[placeholder]{z-index:auto}.i-amphtml-notbuilt>[placeholder]{display:block!important}.i-amphtml-hidden-by-media-query{display:none!important}.i-amphtml-element-error{background:red!important;color:#fff!important;position:relative!important}.i-amphtml-element-error:before{content:attr(error-message)}i-amp-scroll-container,i-amphtml-scroll-container{position:absolute;top:0;left:0;right:0;bottom:0;display:block}i-amp-scroll-container.amp-active,i-amphtml-scroll-container.amp-active{overflow:auto;-webkit-overflow-scrolling:touch}.i-amphtml-loading-container{display:block!important;pointer-events:none;z-index:1}.i-amphtml-notbuilt>.i-amphtml-loading-container{display:block!important}.i-amphtml-loading-container.amp-hidden{visibility:hidden}.i-amphtml-element>[overflow]{cursor:pointer;position:relative;z-index:2;visibility:hidden;display:initial;line-height:normal}.i-amphtml-layout-size-defined>[overflow]{position:absolute}.i-amphtml-element>[overflow].amp-visible{visibility:visible}template{display:none!important}.amp-border-box,.amp-border-box *,.amp-border-box :after,.amp-border-box :before{box-sizing:border-box}amp-pixel{display:none!important}amp-analytics,amp-auto-ads,amp-story-auto-ads{position:fixed!important;top:0!important;width:1px!important;height:1px!important;overflow:hidden!important;visibility:hidden}amp-story{visibility:hidden!important}html.i-amphtml-fie>amp-analytics{position:initial!important}[visible-when-invalid]:not(.visible),form [submit-error],form [submit-success],form [submitting]{display:none}amp-accordion{display:block!important}@media (min-width:1px){:where(amp-accordion>section)>:first-child{margin:0;background-color:#efefef;padding-right:20px;border:1px solid #dfdfdf}:where(amp-accordion>section)>:last-child{margin:0}}amp-accordion>section{float:none!important}amp-accordion>section>*{float:none!important;display:block!important;overflow:hidden!important;position:relative!important}amp-accordion,amp-accordion>section{margin:0}amp-accordion:not(.i-amphtml-built)>section>:last-child{display:none!important}amp-accordion:not(.i-amphtml-built)>section[expanded]>:last-child{display:block!important}\n/*# sourceURL=/css/ampshared.css*/html.i-amphtml-inabox{width:100%!important;height:100%!important}",(()=>{Zn(self.document,(function(){Xo(self),function(t){gi(t.document,(()=>function(t){let e=1500;const i=t.performance;i&&i.timing&&i.timing.navigationStart&&(e=Date.now()-i.timing.navigationStart);const s=Math.max(1,2100-e);t.setTimeout((()=>{Sh(t);const{styleSheets:e}=t.document;if(!e)return;const i=t.document.querySelectorAll(`link[rel~="stylesheet"]:not([href^="https://translate.googleapis.com/translate_static/css/"]):not([href^="${Mt(et)}"])`),n=[];for(let t=0;t<i.length;t++){const s=i[t];let r=!1;for(let t=0;t<e.length;t++)if(e[t].ownerNode==s){r=!0;break}r||n.push(s)}for(let e=0;e<n.length;e++){const i=n[e],r=i.media||"all";i.media="print",i.onload=()=>{i.media=r,Sh(t)},i.setAttribute("i-amphtml-timeout",s),i.parentNode.insertBefore(i,i.nextSibling)}}),s)}(t)))}(self),oh(t),e.coreServicesAvailable(),yo=s(),function(t){const{win:e}=t,i=t.getRootNode();var s,n,r,o;(s=t,n=e,r=oi(t).getLayoutRect(i.documentElement||i.body||i),function(t,e,i){return t.signals().whenSignal(ji).then((()=>{const i=[];return Ze(t).get().forEach((t=>{t.hasBeenMeasured()||t.hostWin!=e||t.hasOwner()||i.push(t.ensureMeasured())})),Promise.all(i)})).then((()=>Ze(t).get().filter((t=>t.hostWin==e&&!t.hasOwner()&&t.hasBeenMeasured()&&(t=>!(!t.isDisplayed()||!t.overlaps(r)&&!t.isFixed()||o&&!t.prerenderAllowed()))(t)))))}($e(s),n).then((t=>{const e=[];return t.forEach((t=>{Vi.includes(t.element.tagName)||e.push(t.loadedOnce())})),Promise.all(e)}))).then((()=>{e.dispatchEvent(bi(e,"amp-ini-load",null,{bubbles:!0})),e.parent&&e.parent.postMessage("amp-ini-load","*")}))}(t)})),Zn(self.document,(function(){!function(t){!function(t){Sr(t,Rr,kr)}(t),function(t){Sr(t,Or,Cr)}(t),function(t){Sr(t,"amp-layout",jr)}(t)}(self)})),Zn(self.document,(function(){Dh(self,(t=>(function(t){const{documentElement:e}=t.document,i=He(t).getSingleDoc();t.AMP.ampdoc=i;const s=ni(e);t.AMP.viewer=s;const n=oi(e);t.AMP.viewport={},t.AMP.viewport.getScrollLeft=n.getScrollLeft.bind(n),t.AMP.viewport.getScrollWidth=n.getScrollWidth.bind(n),t.AMP.viewport.getWidth=n.getWidth.bind(n)}(t),Lt(t.document).then((()=>{wr(t.AMP.ampdoc)})))))})),Zn(self.document,(function(){wr(t)})),Zn(self.document,(function(){Ro.installAnchorClickInterceptor(t,self),function(t){if(t.document.head.querySelector(`meta[content='${Ci}']`))return;const e=zt(t.document,"meta",{"http-equiv":"origin-trial",content:Ci});t.document.head.appendChild(e)}(self),function(t){const{win:e}=t,i=e.document,s=function(t){const e=m();return t.forEach((t=>{const{content:i,name:s}=t;if(s.startsWith("amp-cta-")){const t=s.split("amp-")[1];e[t]=i}else if(s.startsWith(Eh)){const t=s.split(Eh)[1];e[t]=i}})),e}(function(t){return t.querySelectorAll("meta[name]")}(i));if(!(n=s)["cta-type"]||!n["cta-url"])return;var n;an(t,".i-amphtml-story-ad-link-root{all:initial!important;color:initial!important;display:-ms-flexbox!important;display:flex!important;-ms-flex-direction:column!important;flex-direction:column!important;-ms-flex-align:center!important;align-items:center!important}\n/*# sourceURL=/extensions/amp-story-auto-ads/0.1/amp-story-auto-ads-shared.css*/amp-story-cta-layer{display:block!important;position:absolute!important;top:80%!important;right:0!important;bottom:0!important;left:0!important;margin:0!important;z-index:2147483642!important}\n/*# sourceURL=/extensions/amp-story-auto-ads/0.1/amp-story-auto-ads-inabox.css*/",(()=>{})),function(t,e,i){const s=t.document;try{const n=e["attribution-url"],r=e["attribution-icon"];if(!n||!r)return null;En(n,i,"amp-story-auto-ads attribution url"),En(r,i,"amp-story-auto-ads attribution icon");const o=zt(s,"div",{"role":"button","class":"i-amphtml-attribution-host"}),h=zt(s,"img",{"class":"i-amphtml-story-ad-attribution","src":r});h.addEventListener("click",(e=>function(t,e){Io(t,e,"_blank")}(t,n))),wh(o,h,".i-amphtml-story-ad-attribution{position:absolute;bottom:0!important;left:0!important;max-height:15px!important;z-index:4!important}.i-amphtml-story-ad-fullbleed.i-amphtml-story-ad-attribution{bottom:12.5vh!important;left:50%!important;transform:translateX(-22.5vh)!important}\n/*# sourceURL=/extensions/amp-story-auto-ads/0.1/amp-story-auto-ads-attribution.css*/"),i.appendChild(o)}catch(t){return null}}(e,s,i.body);const r=new class{constructor(t){this.pl=Ke(t),this.sp=t.win.document,this.iv=this.sp.createElement("div"),this.pl.mutateElement(this.iv,(()=>{this.sp.body.appendChild(this.iv),ts(this.iv,{position:"absolute",top:0,left:0,zIndex:1,visibility:"hidden","font-weight":"bold","letter-spacing":"0.2px"})}))}fit(t,e,i){let s=!1;return this.pl.mutateElement(e,(()=>{this.iv.textContent=i;const n=function(t,e,i,s,n){for(let e=14;e>=12;e--){Zi(t,"fontSize",is(e));const s=t.offsetHeight,n=t.offsetWidth;if(s<32&&n<i)return e}return 11}(this.iv,0,this.sv(t));n>=12&&(this.nv(e,n),s=!0)})).then((()=>s))}sv(t){return t.offsetWidth-84}nv(t,e){Zi(t,"fontSize",is(e))}}(t),o=i.createElement("div");(function(t,e,i,s){const n=s["cta-url"],r=s["cta-type"],o=zt(t,"a",{"class":"i-amphtml-story-ad-link","target":"_blank","href":n});return e.fit(i,o,r).then((e=>{if(!e)return null;if(o.href=n,o.textContent=r,"https:"!==o.protocol&&"http:"!==o.protocol)return null;const h=function(t,e){return t.__AMP_EXPERIMENT_BRANCHES?t.__AMP_EXPERIMENT_BRANCHES["story-ad-auto-advance"]:null}(t.defaultView);return"31067118"==h||"31067119"==h?function(t,e,i){const s=t.createElement("amp-story-page-outlink");s.setAttribute("layout","nodisplay");const n=zt(t,"a",{"class":"i-amphtml-story-ad-link","target":"_top","href":e["cta-url"]});n.textContent=e["cta-type"],s.appendChild(n);for(const t of Th)e[t]&&s.setAttribute(t,e[t]);return We(Tt(t)).installExtensionForDoc(me(t),"amp-story-page-attachment","0.1"),s.className="i-amphtml-story-page-outlink-container",i.appendChild(s),n}(t,s,i):function(t,e,i){const s=e.createElement("amp-story-cta-layer");s.className="i-amphtml-cta-container";const n=zt(e,"div",{"class":"i-amphtml-story-ad-link-root","role":"button"});return wh(n,t,".i-amphtml-story-ad-link{background-color:#fff!important;border-radius:20px!important;box-sizing:border-box!important;bottom:32px!important;box-shadow:0px 2px 12px rgba(0,0,0,0.16)!important;color:#4285f4!important;font-family:Roboto,sans-serif!important;font-weight:700!important;height:36px!important;letter-spacing:0.2px!important;line-height:36px!important;overflow:hidden!important;opacity:0;padding:0 10px!important;position:absolute!important;text-align:center!important;text-decoration:none!important;min-width:120px!important;max-width:calc(100vw - 64px)}[cta-active].i-amphtml-story-ad-link{animation-delay:100ms!important;animation-duration:300ms!important;animation-timing-function:cubic-bezier(0.4,0,0.2,1)!important;animation-fill-mode:forwards!important;animation-name:ad-cta!important}@keyframes ad-cta{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}\n/*# sourceURL=/extensions/amp-story-auto-ads/0.1/amp-story-auto-ads-cta-button.css*/"),s.appendChild(n),i.appendChild(s),t}(o,t,i)}))})(i,r,o,s).then((t=>t&&t.setAttribute("cta-active",""))),i.body.appendChild(o),e.parent&&e.parent.postMessage("amp-story-ad-load","*")}(t),function(t){const e=t.location.href;if(e.startsWith("about:"))return;let i=!1;const s=Y(t);ut(t,s)&&(i="0"!==s.validate),i&&function(t,e){const i=t.createElement("script");i.src=e,Yt(t,i);const s=Ti(i).then((()=>{t.head.removeChild(i)}),(()=>{}));return t.head.appendChild(i),s}(t.document,`${et}/v0/validator_wasm.js`).then((()=>{amp.validator.validateUrlAndLog(e,t.document)}))}(self),function(t){wt(t.defaultView);const e=t.defaultView;Lt(t).then((()=>function(t){const e=hn(t).map((e=>{const i=function(t,e){return _e(t,e)}(t,e).then((t=>t&&function(t){return"function"==typeof t.whenReady}(t)?t.whenReady().then((()=>t)):t));return ti(t).timeoutPromise(3e3,i,`Render timeout waiting for service ${e} to be ready.`)}));return Promise.all(e)}(e))).catch((t=>(c(t),[]))).then((i=>{ln=!0,t.body.getBoundingClientRect(),dn(t),me(t).signals().signal(Ys),i.length>0&&Ze(t.documentElement).schedulePass(1,!0);try{const t=Qe(e);t.tick("mbv"),t.flush()}catch(t){}}))}(self.document)}),!0),Zn(self.document,(function(){e.tick("e_is"),Ze(t).ampInitComplete(),e.flush()}))}),!0,"amp-runtime")})),self.console&&(console.info||console.log).call(console,"Powered by AMP ⚡ HTML – Version 2211060024000",self.location.href),self.document.documentElement.setAttribute("amp-version","2211060024000")})();
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */
/**
* @license
* Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file or at
* https://developers.google.com/open-source/licenses/bsd
*/
//# sourceMappingURL=amp4ads-v0.mjs.map